Fixing a bug that was causing some number Koans to be presolved.
This commit is contained in:
1
Rakefile
1
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user