Module: Capybara

Defined in:
lib/swinger.rb

Class Method Summary collapse

Class Method Details

.using_driver(driver) ⇒ Object



16
17
18
19
20
21
# File 'lib/swinger.rb', line 16

def self.using_driver(driver)
  Capybara.current_driver = driver
  yield
ensure
  Capybara.use_default_driver
end