aboutsummaryrefslogtreecommitdiffstats
path: root/test/models
diff options
context:
space:
mode:
authorLarry Lv <larrylv1990@gmail.com>2014-05-20 01:32:05 +0800
committerLarry Lv <larrylv1990@gmail.com>2014-05-20 01:32:05 +0800
commit6889c6152dea729638e40297c8d709b41419ad6b (patch)
tree93a615feaf5790e79e52c889d4906678eb678db9 /test/models
parent8a05587227f00317e016b1cf2c15ed84c7699a8b (diff)
downloadrails-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.rb4
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