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 def test_objects_have_methods
fido = Dog.new fido = Dog.new
assert_equal __(44), fido.methods.size assert fido.methods.size > _n_(30)
end end
def test_classes_have_methods def test_classes_have_methods
assert_equal __(79), Dog.methods.size assert Dog.methods.size > _n_(40)
end end
def test_you_can_define_methods_on_individual_objects def test_you_can_define_methods_on_individual_objects

View File

@@ -74,6 +74,6 @@ class AboutScope < EdgeCase::Koan
def test_you_can_get_a_list_of_constants_for_any_class_or_module def test_you_can_get_a_list_of_constants_for_any_class_or_module
assert_equal __(["Dog"]), Jims.constants assert_equal __(["Dog"]), Jims.constants
assert_equal __(122), Object.constants.size assert Object.constants.size > _n_(10)
end end
end end