From 0862cf1bbffe0a3c82e311804244a8cb715332a6 Mon Sep 17 00:00:00 2001 From: eileencodes Date: Fri, 5 Aug 2016 10:17:22 -0400 Subject: Add ability to run system tests via Capybara Capybara defaults to Rack Test for it's driver and works out of the box but this adds the headers and allows for future configurable adapters for system testing. --- actionpack/lib/system_testing/driver_adapters.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 actionpack/lib/system_testing/driver_adapters.rb (limited to 'actionpack/lib/system_testing/driver_adapters.rb') diff --git a/actionpack/lib/system_testing/driver_adapters.rb b/actionpack/lib/system_testing/driver_adapters.rb new file mode 100644 index 0000000000..38e2bdddcc --- /dev/null +++ b/actionpack/lib/system_testing/driver_adapters.rb @@ -0,0 +1,13 @@ +module SystemTesting + module DriverAdapters + extend ActiveSupport::Autoload + + autoload :CapybaraRackTestDriver + + class << self + def lookup(name) + const_get(name.to_s.camelize) + end + end + end +end -- cgit v1.2.3