Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. RSpec.configure do |config|
  2. [...]
  3. require 'capybara/webkit'
  4. require 'headless'
  5. Capybara.javascript_driver = :webkit
  6. end
  7.  
  8. Capybara::Webkit.configure do |config|
  9. # config.debug = true
  10.  
  11. # Timeout if requests take longer than 5 seconds
  12. config.timeout = 5
  13.  
  14. # Don't load images
  15. config.skip_image_loading
  16. end
  17.  
  18. config.around(:each, js: true) do |example|
  19. Headless.ly do
  20. example.run
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement