mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #29 from larrylv/patch-2
Fix `Person#==` method in test.
This commit is contained in:
commit
ec47b52b24
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue