1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix Person#== method in test.

This commit is contained in:
Larry Lv 2014-05-20 01:32:05 +08:00
parent 8a05587227
commit 6889c6152d

View file

@ -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
end