Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit da6dd166baa65bb68c86ddfb543020137be9a290 1 parent 2badaca
@melindaweathers authored
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'
Please sign in to comment.
Something went wrong with that request. Please try again.