Sha256: 018039e22ee6805070b26f682613210ac84e4a9e20cf9fc2b10fc70a3f686d0c

Contents?: true

Size: 870 Bytes

Versions: 2

Compression:

Stored size: 870 Bytes

Contents

module MiniTestSpecRails
  class Railtie < ::Rails::Railtie
    
    config.minitest_spec_rails = ActiveSupport::OrderedOptions.new
    
    config.before_initialize do |app| 
      ActiveSupport.on_load(:action_view) do
        require 'minitest-spec-rails/init/action_view'
      end
      ActiveSupport.on_load(:action_controller) do 
        require 'minitest-spec-rails/init/action_controller'
        require 'action_dispatch/testing/integration' # For Rails 3.0 loading.
        require 'minitest-spec-rails/init/action_dispatch'
      end
      ActiveSupport.on_load(:action_mailer) do
        require 'minitest-spec-rails/init/action_mailer'
      end
    end

    initializer 'minitest-spec-rails.after.load_active_support', :after => :load_active_support, :group => :all do |app|
      require 'minitest-spec-rails/init/active_support'
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minitest-spec-rails-4.3.3 lib/minitest-spec-rails/railtie.rb
minitest-spec-rails-4.3.2 lib/minitest-spec-rails/railtie.rb