spec/support/models/transaction.rb in arstotzka-1.4.2 vs spec/support/models/transaction.rb in arstotzka-1.4.3
- old
+ new
@@ -12,8 +12,9 @@
type == 'income'
end
def ==(other)
return false unless other.class == self.class
+
other.value == value && other.type == type
end
end