diff options
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/customer.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/customer.rb b/activerecord/test/fixtures/customer.rb index 2eba052eee..e23fd03ade 100644 --- a/activerecord/test/fixtures/customer.rb +++ b/activerecord/test/fixtures/customer.rb @@ -14,6 +14,10 @@ class Address def close_to?(other_address) city == other_address.city && country == other_address.country end + + def ==(other) + other.is_a?(self.class) && other.street == street && other.city == city && other.country == country + end end class Money |