Sha256: 2ebd24896a12db191d158217878d70c66f4a1dc2d3af44f4dfbb0b26c7fd8651

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

require 'capybara/rspec'
require 'capybara/rails'
require 'capybara/poltergeist'

module CapybaraHelpers; end

RSpec.configure do |config|
  config.include CapybaraHelpers, type: :feature

  Capybara.javascript_driver = :poltergeist

  config.before(:each, :js) do
    if Capybara.javascript_driver == :selenium
      page.driver.browser.manage.window.maximize
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spree-print-invoice-2.2.0 spec/support/capybara.rb
spree-print-invoice-2.1.0 spec/support/capybara.rb
spree-faq-2.2.0 spec/support/capybara.rb
spree-faq-2.1.0 spec/support/capybara.rb
spree-faq-2.0.0 spec/support/capybara.rb