spec/model/introspection_spec.rb in her-0.5.5 vs spec/model/introspection_spec.rb in her-0.6
- old
+ new
@@ -42,10 +42,10 @@
end
end
describe "#inspect with errors in resource path" do
it "prints the resource path as “unknown”" do
- @comment = Foo::Comment.all(:project_id => 1).first
+ @comment = Foo::Comment.where(:project_id => 1).first
path = '<unknown path, missing `project_id`>'
["#<Foo::Comment(#{path}) body=\"Hello!\" id=1>", "#<Foo::Comment(#{path}) id=1 body=\"Hello!\">"].should include(@comment.inspect)
end
end
end