Sha256: a0b90d125031c35a3d6030e93fe9c4acbb9a185a9a8aa8e3a073905151fb91d2
Contents?: true
Size: 1.02 KB
Versions: 7
Compression:
Stored size: 1.02 KB
Contents
module MiniTestSpecRails class Railtie < ::Rails::Railtie config.minitest_spec_rails = ActiveSupport::OrderedOptions.new config.minitest_spec_rails.mini_shoulda = false config.before_initialize do |app| require 'active_support' require 'minitest-spec-rails/init/active_support' ActiveSupport.on_load(:action_controller) do require 'minitest-spec-rails/init/action_controller' require 'minitest-spec-rails/init/action_dispatch' end ActiveSupport.on_load(:action_mailer) do require 'minitest-spec-rails/init/action_mailer' end end if Rails.env.test? initializer 'minitest-spec-rails.action_view', :after => 'action_view.setup_action_pack', :group => :all do |app| require 'minitest-spec-rails/init/action_view' end if Rails.env.test? initializer 'minitest-spec-rails.mini_shoulda', :group => :all do |app| require 'minitest-spec-rails/init/mini_shoulda' if app.config.minitest_spec_rails.mini_shoulda end if Rails.env.test? end end
Version data entries
7 entries across 7 versions & 2 rubygems