aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/system_testing/railtie.rb
blob: f77184ad3d2423d091ef7c012117f1238df80d31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 ||= {}

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