mirror of https://github.com/rails/rails
Fix failing AS isolated tests
This commit is contained in:
parent
ca2f2d1800
commit
fe68cf2784
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue