From e1ada6ca9f7e04c69592d7101e6fcf92ee9c2b61 Mon Sep 17 00:00:00 2001 From: James Edward Gray II Date: Sat, 21 Aug 2010 15:34:54 -0500 Subject: [PATCH] Fixing a bug that was causing some number Koans to be presolved. --- Rakefile | 1 + koans/about_class_methods.rb | 4 ++-- koans/about_scope.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index cb81bba..614aad6 100644 --- a/Rakefile +++ b/Rakefile @@ -21,6 +21,7 @@ module Koans line = line.gsub(/\b____\([^\)]+\)/, "____") line = line.gsub(/\b___\([^\)]+\)/, "___") line = line.gsub(/\b__\([^\)]+\)/, "__") + line = line.gsub(/\b_n_\([^\)]+\)/, "_n_") line = line.gsub(%r(/\#\{__\}/), "/__/") line end diff --git a/koans/about_class_methods.rb b/koans/about_class_methods.rb index 8072166..ddd32bd 100644 --- a/koans/about_class_methods.rb +++ b/koans/about_class_methods.rb @@ -19,11 +19,11 @@ class AboutClassMethods < EdgeCase::Koan def test_objects_have_methods fido = Dog.new - assert fido.methods.size > _n_(30) + assert fido.methods.size > _n_ end def test_classes_have_methods - assert Dog.methods.size > _n_(40) + assert Dog.methods.size > _n_ end def test_you_can_define_methods_on_individual_objects diff --git a/koans/about_scope.rb b/koans/about_scope.rb index 77fe668..edbe876 100644 --- a/koans/about_scope.rb +++ b/koans/about_scope.rb @@ -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 Object.constants.size > _n_(10) + assert Object.constants.size > _n_ end end