Sha256: 1356503666316cadea3214e3919b42f11902484acba695da4c96180891a3818d
Contents?: true
Size: 1001 Bytes
Versions: 1
Compression:
Stored size: 1001 Bytes
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| return unless Rails.env.test? require 'active_support' require 'minitest-spec-rails/init/active_support' 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 '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.mini_shoulda', :group => :all do |app| return unless Rails.env.test? require 'minitest-spec-rails/init/mini_shoulda' if app.config.minitest_spec_rails.mini_shoulda end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minitest-spec-rails-5.0.1 | lib/minitest-spec-rails/railtie.rb |