diff options
author | Larry Lv <larrylv1990@gmail.com> | 2014-05-20 01:32:05 +0800 |
---|---|---|
committer | Larry Lv <larrylv1990@gmail.com> | 2014-05-20 01:32:05 +0800 |
commit | 6889c6152dea729638e40297c8d709b41419ad6b (patch) | |
tree | 93a615feaf5790e79e52c889d4906678eb678db9 /test/models | |
parent | 8a05587227f00317e016b1cf2c15ed84c7699a8b (diff) | |
download | rails-6889c6152dea729638e40297c8d709b41419ad6b.tar.gz rails-6889c6152dea729638e40297c8d709b41419ad6b.tar.bz2 rails-6889c6152dea729638e40297c8d709b41419ad6b.zip |
Fix `Person#==` method in test.
Diffstat (limited to 'test/models')
-rw-r--r-- | test/models/person.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/models/person.rb b/test/models/person.rb index 6e91e8b9a2..fb12c1c614 100644 --- a/test/models/person.rb +++ b/test/models/person.rb @@ -14,6 +14,6 @@ class Person end def ==(other_person) - other_person.is_a?(Person) && id = other_person.id + other_person.is_a?(Person) && id == other_person.id end -end
\ No newline at end of file +end |