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 da6dd166baa65bb68c86ddfb543020137be9a290 @melindaweathers committed May 15, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/shoulda/context.rb
View
6 lib/shoulda/context.rb
@@ -1,11 +1,11 @@
begin
- # if present, then also loads MiniTest::Spec
+ # if present, then also loads MiniTest::Unit::TestCase
ActiveSupport::TestCase
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 da6dd16

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