2013-02-25 14:13:03 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
Capybara.register_driver :selenium_chrome do |app|
|
2013-11-18 15:47:05 -05:00
|
|
|
args = ENV['TRAVIS'] ? ['no-sandbox' ] : []
|
|
|
|
Capybara::Selenium::Driver.new(app, :browser => :chrome, :args => args)
|
2013-02-25 14:13:03 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
class ChromeTestApp < TestApp
|
|
|
|
# Object.id is different from the TestApp used in firefox session so
|
|
|
|
# a new Capybar::Server instance will get launched for chrome testing
|
|
|
|
end
|
|
|
|
|
|
|
|
module TestSessions
|
|
|
|
Chrome = Capybara::Session.new(:selenium_chrome, ChromeTestApp)
|
|
|
|
end
|
|
|
|
|
2013-11-14 12:43:36 -05:00
|
|
|
Capybara::SpecHelper.run_specs TestSessions::Chrome, "selenium_chrome", :capybara_skip => [
|
2013-02-25 14:13:03 -05:00
|
|
|
:response_headers,
|
|
|
|
:status_code,
|
|
|
|
:trigger
|
2013-11-26 13:33:33 -05:00
|
|
|
] unless ENV['TRAVIS'] && (RUBY_PLATFORM == 'java')
|