Skip to content

Commit

Permalink
Merge pull request thoughtbot#23 from melindaweathers/master
Browse files Browse the repository at this point in the history
Support for Rails 4 RC1
  • Loading branch information
rmm5t committed May 16, 2013
2 parents 647a031 + da6dd16 commit bf9dd68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/shoulda/context.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit bf9dd68

Please sign in to comment.