提交 fe68cf27 编写于 作者: J Joshua Peek

Fix failing AS isolated tests

上级 ca2f2d18
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 @@ def test_to_param_on_true
def test_to_param_on_false
assert_equal false, false.to_param
end
end
\ No newline at end of file
end
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
\ No newline at end of file
end
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
......
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 @@ def test_unoptionalize
assert_equal "foo", Regexp.unoptionalize("(?:foo)?")
assert_equal "", Regexp.unoptionalize("")
end
end
\ No newline at end of file
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册