Sha256: 8a758beda77ff33af59b92720b85cb40d064c60ceeddf90504a8506017d13f78

Contents?: true

Size: 473 Bytes

Versions: 11

Compression:

Stored size: 473 Bytes

Contents

require "active_support/testing/setup_and_teardown"

module ActiveSupport
  module Testing
    module SetupAndTeardown
      if defined?(ForMinitest)
        ForMiniTest = ForMinitest
      end
      module ForMiniTest
        remove_method :run

        def before_setup
          super
          run_callbacks :setup
        end

        def after_teardown
          run_callbacks :teardown
          super
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
minitest-reporters-1.3.6 lib/minitest/old_activesupport_fix.rb
nullifyable-0.1.0 vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/old_activesupport_fix.rb
minitest-reporters-1.3.5 lib/minitest/old_activesupport_fix.rb
minitest-reporters-1.3.5.beta1 lib/minitest/old_activesupport_fix.rb
minitest-reporters-1.3.4 lib/minitest/old_activesupport_fix.rb
minitest-reporters-1.3.3 lib/minitest/old_activesupport_fix.rb
minitest-reporters-1.3.2 lib/minitest/old_activesupport_fix.rb
minitest-reporters-1.3.2.beta2 lib/minitest/old_activesupport_fix.rb
minitest-reporters-1.3.2.beta1 lib/minitest/old_activesupport_fix.rb
minitest-reporters-1.3.1 lib/minitest/old_activesupport_fix.rb
minitest-reporters-1.3.1.beta1 lib/minitest/old_activesupport_fix.rb