lib/draper/test_case.rb in draper-1.3.0 vs lib/draper/test_case.rb in draper-1.3.1
- old
+ new
@@ -1,19 +1,8 @@
module Draper
- begin
- require 'minitest/rails'
- rescue LoadError
- end
+ require 'active_support/test_case'
- active_support_test_case = begin
- require 'minitest/rails/active_support' # minitest-rails < 0.5
- ::MiniTest::Rails::ActiveSupport::TestCase
- rescue LoadError
- require 'active_support/test_case'
- ::ActiveSupport::TestCase
- end
-
- class TestCase < active_support_test_case
+ class TestCase < ::ActiveSupport::TestCase
module ViewContextTeardown
def teardown
super
Draper::ViewContext.clear!
end