Modified to be less dependent on exact method and constant counts.

This commit is contained in:
Jim Weirich
2010-04-20 16:17:24 -04:00
parent 110ff38b3f
commit 3b824d0e86
2 changed files with 3 additions and 3 deletions

View File

@@ -19,11 +19,11 @@ class AboutClassMethods < EdgeCase::Koan
def test_objects_have_methods
fido = Dog.new
assert_equal __(44), fido.methods.size
assert fido.methods.size > _n_(30)
end
def test_classes_have_methods
assert_equal __(79), Dog.methods.size
assert Dog.methods.size > _n_(40)
end
def test_you_can_define_methods_on_individual_objects