提交 51e13d51 编写于 作者: M Michael Koziarski

Move test related core_ext stuff out of regular core ext to prevent nasty...

Move test related core_ext stuff out of regular core ext to prevent nasty surprises when you require active_support then use Test::Unit directly.
上级 01637796
*Edge*
* Move the test related core_ext stuff out of core_ext so it's only loaded by the test helpers. [Michael Koziarski]
* Add Inflection rules for String#humanize. #535 [dcmanges]
ActiveSupport::Inflector.inflections do |inflect|
......
require 'active_support/core_ext/test/unit/assertions'
require 'test/unit/testcase'
require 'active_support/testing/setup_and_teardown'
require 'active_support/testing/default'
require 'active_support/testing/core_ext/test'
# TODO: move to core_ext
class Test::Unit::TestCase #:nodoc:
include ActiveSupport::Testing::SetupAndTeardown
end
module ActiveSupport
class TestCase < Test::Unit::TestCase
......
require 'active_support/testing/core_ext/test/unit/assertions'
require 'active_support/testing/setup_and_teardown'
class Test::Unit::TestCase #:nodoc:
include ActiveSupport::Testing::SetupAndTeardown
end
\ No newline at end of file
module Test
module Unit
require 'test/unit/assertions'
module Test
module Unit
#--
# FIXME: no Proc#binding in Ruby 2, must change this API
#++
module Assertions
module Assertions
# Test numeric difference between the return value of an expression as a result of what is evaluated
# in the yielded block.
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册