Fix failing AS isolated tests

This commit is contained in:
Joshua Peek 2009-09-05 18:31:10 -05:00
parent ca2f2d1800
commit fe68cf2784
4 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,6 @@
require 'abstract_unit'
require 'active_support/core_ext/boolean/conversions'
class BooleanExtAccessTests < Test::Unit::TestCase
def test_to_param_on_true
assert_equal true, true.to_param
@ -6,4 +9,4 @@ class BooleanExtAccessTests < Test::Unit::TestCase
def test_to_param_on_false
assert_equal false, false.to_param
end
end
end

View File

@ -1,5 +1,8 @@
require 'abstract_unit'
require 'active_support/core_ext/nil/conversions'
class NilExtAccessTests < Test::Unit::TestCase
def test_to_param
assert_nil nil.to_param
end
end
end

View File

@ -1,4 +1,6 @@
require 'abstract_unit'
require 'active_support/core_ext/object/metaclass'
require 'active_support/core_ext/object/conversions'
class ObjectExtTest < Test::Unit::TestCase
def test_tap_yields_and_returns_self

View File

@ -1,3 +1,6 @@
require 'abstract_unit'
require 'active_support/core_ext/regexp'
class RegexpExtAccessTests < Test::Unit::TestCase
def test_number_of_captures
assert_equal 0, //.number_of_captures
@ -23,4 +26,4 @@ class RegexpExtAccessTests < Test::Unit::TestCase
assert_equal "foo", Regexp.unoptionalize("(?:foo)?")
assert_equal "", Regexp.unoptionalize("")
end
end
end