aboutsummaryrefslogtreecommitdiffstats
path: root/actionsystemtest/lib/action_system_test/driver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionsystemtest/lib/action_system_test/driver.rb')
-rw-r--r--actionsystemtest/lib/action_system_test/driver.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/actionsystemtest/lib/action_system_test/driver.rb b/actionsystemtest/lib/action_system_test/driver.rb
new file mode 100644
index 0000000000..7d499ba772
--- /dev/null
+++ b/actionsystemtest/lib/action_system_test/driver.rb
@@ -0,0 +1,16 @@
+module ActionSystemTest
+ class Driver # :nodoc:
+ def initialize(name)
+ @name = name
+ end
+
+ def run
+ register
+ end
+
+ private
+ def register
+ Capybara.default_driver = @name
+ end
+ end
+end