aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-28 14:16:26 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-31 13:57:23 -0300
commiteb4930e3c724cf71d6ce5bb2aec4af82b2025b03 (patch)
tree865e1be25c9bebfb1515adfee6be11dcb478e821 /activesupport/lib/active_support
parentd58d71f565848cccc1a3fa4ae504559042146c42 (diff)
downloadrails-eb4930e3c724cf71d6ce5bb2aec4af82b2025b03.tar.gz
rails-eb4930e3c724cf71d6ce5bb2aec4af82b2025b03.tar.bz2
rails-eb4930e3c724cf71d6ce5bb2aec4af82b2025b03.zip
Inherit from MiniTest::Unit::TestCase instead of MiniTest::Spec
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/test_case.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index be1bdbb52f..4290d5b3ed 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -1,5 +1,5 @@
gem 'minitest' # make sure we get the gem, not stdlib
-require 'minitest/spec'
+require 'minitest/unit'
require 'active_support/testing/tagged_logging'
require 'active_support/testing/setup_and_teardown'
require 'active_support/testing/assertions'
@@ -17,13 +17,7 @@ rescue LoadError
end
module ActiveSupport
- class TestCase < ::MiniTest::Spec
-
- # Use AS::TestCase for the base class when describing a model
- register_spec_type(self) do |desc|
- Class === desc && desc < ActiveRecord::Base
- end
-
+ class TestCase < ::MiniTest::Unit::TestCase
Assertion = MiniTest::Assertion
alias_method :method_name, :__name__