Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RSpec.configure do |config|
- [...]
- require 'capybara/webkit'
- require 'headless'
- Capybara.javascript_driver = :webkit
- end
- Capybara::Webkit.configure do |config|
- # config.debug = true
- # Timeout if requests take longer than 5 seconds
- config.timeout = 5
- # Don't load images
- config.skip_image_loading
- end
- config.around(:each, js: true) do |example|
- Headless.ly do
- example.run
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement