1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
module ActionDispatch module SystemTesting class Driver # :nodoc: def initialize(name) @name = name end def use @current = Capybara.current_driver Capybara.current_driver = @name end def reset Capybara.current_driver = @current end end end end