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:
parent
8a05587227
commit
6889c6152d
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