spec/support/models/person.rb in arstotzka-1.0.1 vs spec/support/models/person.rb in arstotzka-1.0.2
- old
+ new
@@ -1,8 +1,14 @@
+# frozen_string_literal: true
+
class Person
attr_reader :name
def initialize(name)
@name = name
end
-end
+ def ==(other)
+ return false unless other.class == self.class
+ other.name == name
+ end
+end