aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/system_testing/railtie.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/system_testing/railtie.rb')
-rw-r--r--actionpack/lib/system_testing/railtie.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/lib/system_testing/railtie.rb b/actionpack/lib/system_testing/railtie.rb
new file mode 100644
index 0000000000..aa3df29344
--- /dev/null
+++ b/actionpack/lib/system_testing/railtie.rb
@@ -0,0 +1,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_adapter ||= :capybara_rack_test_driver
+
+ ActiveSupport.on_load(:system_testing) do
+ options.each { |k,v| send("#{k}=", v) }
+ end
+ end
+ end
+end