blob: d0771f89cb862af873d42c9683979268b3e89fcc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
module SystemTesting
# == System Testing Driver Adapters
#
# System testing supports the following drivers:
#
# * {RackTest}[https://github.com/brynary/rack-test]
# * {Selenium}[https://github.com/SeleniumHQ/selenium]
module DriverAdapters
extend ActiveSupport::Autoload
autoload :CapybaraRackTestDriver
autoload :CapybaraSeleniumDriver
class << self
# Returns driver for specified name.
#
# SystemTesting::DriverAdapters.lookup(:capybara_selenium_driver)
# # => SystemTesting::DriverAdapters::CapybaraSeleniumDriver
def lookup(name)
const_get(name.to_s.camelize)
end
end
end
end
|