search for: test_hero

Displaying 1 result from an estimated 1 matches for "test_hero".

Did you mean: test_help
2006 Mar 21
2
These objects aren''t equal..I''m confused
I''m testing to see if two objects are equal. One is accessed directly from the fixture, and the other is accessed through a relationship. Here''s the test: def test_hero assert_equal players(:hero), hands(:first).hero end Anyway, the values are exactly the same as far as I can tell. The only difference is the object id, but Ruby compares the values, right? This just stopped working when I added another db field to the Hand class, but that shouldn''t...