1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/test/unit/testcase.rb
yugui 5f898e44a7 * test/mini/test_mini_test.rb: recovered. It had been temporarily removed at r19645.
* test/mini/test_mini_mock.rb: ditto.

* test/mini/test_mini_spec.rb: ditto.

* lib/test/**/*: replaced by miniunit.
  miniunit had been temporarily reverted at r19643 but now recovred.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-04 07:30:51 +00:00

31 lines
927 B
Ruby

############################################################
# This file is imported from a different project.
# DO NOT make modifications in this repo.
# File a patch instead and assign it to Ryan Davis
############################################################
require 'mini/test'
require 'test/unit/deprecate'
warn "require 'test/unit/testcase' has been deprecated" unless
caller.first =~ /test.unit.rb/
module Test; end
module Test::Unit # was ::Mini::Test, but rails' horrid code forced my hand
if defined? TestCase then
warn "ARGH! someone defined Test::Unit::TestCase rather than requiring"
remove_const :TestCase
end
AssertionFailedError = ::Mini::Assertion
class TestCase < ::Mini::Test::TestCase
tu_deprecate :method_name, :name # 2009-06-01
def self.test_order # 2009-06-01
:sorted
end
end
end
require 'test/unit/assertions' # brings in deprecated methods