Commit 80383ac2 authored by Coraline Ehmke's avatar Coraline Ehmke

Placeholder spec for loose class methods

parent 6ab6e401
class LoadedAttrAccessor
attr_accessor :name, :email, :password
attr_accessor :city, :state, :postal_code
def address
{
city: city,
state: state,
postal_code: postal_code
}
end
end
\ No newline at end of file
......@@ -3,9 +3,9 @@ require 'pry'
describe Snuffle::SourceFile do
let(:program_2) {Snuffle::SourceFile.new(path_to_file: "spec/fixtures/program_2.rb") }
let(:program_3) {Snuffle::SourceFile.new(path_to_file: "spec/fixtures/program_3.rb") }
let(:program_2) { Snuffle::SourceFile.new(path_to_file: "spec/fixtures/program_2.rb") }
let(:program_3) { Snuffle::SourceFile.new(path_to_file: "spec/fixtures/program_3.rb") }
let(:program_4) { Snuffle::SourceFile.new(path_to_file: "spec/fixtures/program_4.rb") }
describe "#cohorts" do
it "does not match hash values with non-hash values" do
......@@ -20,6 +20,11 @@ describe Snuffle::SourceFile do
expect(values.include?(args)).to be_truthy
end
xit "does not match loose class method calls" do
values = program_4.summary.cohorts.map(&:values)
expect(values.empty?).to be_truthy
end
end
describe "#class_name" do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment