Permalink
Browse files

Fix test for 1.8.7.

  • Loading branch information...
Joannic Laborde
Joannic Laborde committed Dec 19, 2012
1 parent 8e89ee7 commit 4f6c4f477a0e7b6265f9e01f17a586f1fdcdfea5
Showing with 3 additions and 1 deletion.
  1. +3 −1 spec/model/introspection_spec.rb
@@ -32,7 +32,9 @@
it "outputs resource attributes using getters" do
@user = Foo::User.new(:name => "Tobias Funke", :password => "Funke")
@user.instance_eval {def password; 'filtered'; end}
- @user.inspect.should == "#<Foo::User(users) name=\"Tobias Funke\" password=\"filtered\">"
+ @user.inspect.should include("name=\"Tobias Funke\"")
+ @user.inspect.should include("password=\"filtered\"")
+ @user.inspect.should_not include("password=\"Funke\"")
end
end
end

0 comments on commit 4f6c4f4

Please sign in to comment.