Sha256: 3e4e89bb94b960790d3e34c599d90fbd15470fb76902270f8073b9c7c5b722cb

Contents?: true

Size: 703 Bytes

Versions: 3

Compression:

Stored size: 703 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'
require 'selenium-webdriver'
require 'shared_selenium_session'

Capybara.register_driver :selenium_chrome do |app|
  args = ENV['TRAVIS'] ? ['no-sandbox' ] : []
  Capybara::Selenium::Driver.new(app, :browser => :chrome, :args => args)
end

module TestSessions
  Chrome = Capybara::Session.new(:selenium_chrome, TestApp)
end

Capybara::SpecHelper.run_specs TestSessions::Chrome, "selenium_chrome", capybara_skip: [
  :response_headers,
  :status_code,
  :trigger
  ] unless ENV['TRAVIS'] && (RUBY_PLATFORM == 'java')

RSpec.describe "Capybara::Session with chrome" do
  include_examples  "Capybara::Session", TestSessions::Chrome, :selenium_chrome
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capybara-2.10.2 spec/selenium_spec_chrome.rb
capybara-2.10.1 spec/selenium_spec_chrome.rb
capybara-2.10.0 spec/selenium_spec_chrome.rb