Permalink
Browse files

Fix method redefined warnings.

  • Loading branch information...
1 parent 1ef9b7e commit 9063f3729b42105d1fdcede21c43e6e4ce1dcabb @kennyj kennyj committed Aug 28, 2012
@@ -78,6 +78,9 @@ def p.reserved_karmas
assert p.invalid?
assert_equal ["is reserved"], p.errors[:karma]
+ p = Person.new
+ p.karma = "abe"
+
def p.reserved_karmas
%w()
end
@@ -110,6 +110,9 @@ def p.available_karmas
assert p.invalid?
assert_equal ["is not included in the list"], p.errors[:karma]
+ p = Person.new
+ p.karma = "Lifo"
+
def p.available_karmas
%w(Lifo)
end

0 comments on commit 9063f37

Please sign in to comment.