Skip to content

Instantly share code, notes, and snippets.

@shekibobo
Created September 12, 2014 21:02
Show Gist options
  • Save shekibobo/cf6f0088dee7f38b1b60 to your computer and use it in GitHub Desktop.
Save shekibobo/cf6f0088dee7f38b1b60 to your computer and use it in GitHub Desktop.
capybara.rb
require 'capybara/poltergeist'
Capybara.asset_host = 'http://localhost:3000'
Capybara.javascript_driver = :poltergeist
RSpec.configure do |config|
config.before(:each, touchy_js: true) do
Capybara.current_driver = :selenium
end
config.after(:each, touchy_js: true) do
Capybara.use_default_driver
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment