Skip to content
Browse files

Fix Rails 4 support for rc1:

ActiveSupport::TestCase now inherits from MiniTest::Unit::TestCase instead of MiniTest::Spec. Please see: rails/rails@eb4930e
  • Loading branch information...
1 parent 2badaca commit cbc98cc74dcbf8e8ee067f68c8214c34c859248c @melindaweathers committed May 15, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/shoulda/context.rb
View
4 lib/shoulda/context.rb
@@ -4,8 +4,8 @@
rescue
end
-if defined?([ActiveSupport::TestCase, MiniTest::Spec]) && (ActiveSupport::TestCase.ancestors.include?(MiniTest::Spec))
- base_test_case = MiniTest::Spec
+if defined?([ActiveSupport::TestCase, MiniTest::Unit::TestCase]) && (ActiveSupport::TestCase.ancestors.include?(MiniTest::Unit::TestCase))
+ base_test_case = MiniTest::Unit::TestCase
else
if !defined?(Test::Unit::TestCase)
require 'test/unit/testcase'

0 comments on commit cbc98cc

Please sign in to comment.
Something went wrong with that request. Please try again.