Sha256: 3c0e6a789d4618b1473df3ba509e15d211a6252ac38efed7600c49e9db20319d

Contents?: true

Size: 603 Bytes

Versions: 13

Compression:

Stored size: 603 Bytes

Contents

if defined?(Rake.application) &&
   Rake.application.top_level_tasks.grep(/^test(?::|$)/).any?
  ENV["RAILS_ENV"] ||= "test"
end

require "rails"

module Minitest
  module Rails
    class Railtie < ::Rails::Railtie
      config.app_generators do |c|
        c.test_framework :minitest,
                         fixture: true,
                         fixture_replacement: nil
        c.integration_tool :minitest
        c.fallbacks[:minitest] = :test_unit
      end

      rake_tasks do
        load "rails/test_unit/testing.rake" unless Rake::Task.task_defined? "test:run"
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
minitest-rails-7.1.1 lib/minitest/rails/railtie.rb
minitest-rails-6.0.2 lib/minitest/rails/railtie.rb
minitest-rails-6.1.1 lib/minitest/rails/railtie.rb
minitest-rails-7.0.1 lib/minitest/rails/railtie.rb
minitest-rails-7.1.0 lib/minitest/rails/railtie.rb
minitest-rails-7.0.0 lib/minitest/rails/railtie.rb
minitest-rails-6.1.0 lib/minitest/rails/railtie.rb
minitest-rails-6.0.1 lib/minitest/rails/railtie.rb
minitest-rails-6.0.0 lib/minitest/rails/railtie.rb
minitest-rails-6.0.0.rc1 lib/minitest/rails/railtie.rb
minitest-rails-5.2.0 lib/minitest/rails/railtie.rb
minitest-rails-5.1.0 lib/minitest/rails/railtie.rb
minitest-rails-5.0.0 lib/minitest/rails/railtie.rb