Sha256: 95d75fb036c198e400b62fccc416479fe5a0772e440eeb413487e40754bb0ac8

Contents?: true

Size: 430 Bytes

Versions: 7

Compression:

Stored size: 430 Bytes

Contents

Capybara.javascript_driver = :webkit
Capybara.asset_host = "http://localhost:3000"

module CapybaraHelper
  def page!
    save_and_open_page
  end

  def screenshot!
    save_and_open_screenshot
  end

  def blur!
    page.find('body').click
  end
end

Capybara::Webkit.configure do |config|
  config.allow_url(
    %w(fonts.googleapis.com)
  )
end

RSpec.configure do |config|
  config.include CapybaraHelper, type: :feature
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
welaika-suspenders-2.25.0 templates/capybara_webkit.rb
welaika-suspenders-2.24.0 templates/capybara_webkit.rb
welaika-suspenders-2.23.0 templates/capybara_webkit.rb
welaika-suspenders-2.22.0 templates/capybara_webkit.rb
welaika-suspenders-2.21.0 templates/capybara_webkit.rb
welaika-suspenders-2.20.0 templates/capybara_webkit.rb
welaika-suspenders-2.19.0 templates/capybara_webkit.rb