aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/system_testing/railtie.rb
blob: 6c1ddf1448edb35a04d677bc9589e05101daf3bf (plain) (tree)
1
2
3
4
5
6
7
8
9

                          





                                                             
                                                             






                                               
require 'system_test_case'

module SystemTesting
  class Railtie < Rails::Railtie
    config.system_testing = ActiveSupport::OrderedOptions.new

    initializer "system_testing.set_configs" do |app|
      options = app.config.system_testing
      options.driver ||= Rails::SystemTestCase.default_driver

      ActiveSupport.on_load(:system_testing) do
        options.each { |k,v| send("#{k}=", v) }
      end
    end
  end
end