Module: Filet::Capybara::Javascript

Defined in:
lib/filet-capybara/javascript.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/filet-capybara/javascript.rb', line 4

def self.included(base)
  base.class_eval %{
    background do
      ::Capybara.current_driver = ::Capybara.javascript_driver
    end

    teardown do
      ::Capybara.reset_sessions!
      ::Capybara.use_default_driver
    end
  }
end