Updates source to be consistent with the _n_ changes.
authorJim Weirich <jim.weirich@gmail.com>
Tue, 20 Apr 2010 20:25:19 +0000 (16:25 -0400)
committerJim Weirich <jim.weirich@gmail.com>
Tue, 20 Apr 2010 20:25:19 +0000 (16:25 -0400)
koans/about_class_methods.rb
koans/about_scope.rb
koans/edgecase.rb

index 39ede95..c768b00 100644 (file)
@@ -19,11 +19,11 @@ class AboutClassMethods < EdgeCase::Koan
 
   def test_objects_have_methods
     fido = Dog.new
-    assert_equal __, fido.methods.size
+    assert fido.methods.size > _n_(30)
   end
 
   def test_classes_have_methods
-    assert_equal __, Dog.methods.size
+    assert Dog.methods.size > _n_(40)
   end
 
   def test_you_can_define_methods_on_individual_objects
index 968c360..e616ae0 100644 (file)
@@ -74,6 +74,6 @@ class AboutScope < EdgeCase::Koan
 
   def test_you_can_get_a_list_of_constants_for_any_class_or_module
     assert_equal __, Jims.constants
-    assert_equal __, Object.constants.size
+    assert Object.constants.size > _n_(10)
   end
 end
index 91d838f..acb032b 100644 (file)
@@ -10,6 +10,10 @@ def __(value="FILL ME IN")
   value
 end
 
+def _n_(value=999999)
+  value
+end
+
 def ___(value=FillMeInError)
   value
 end