1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

only run the window tests once on travis

This commit is contained in:
Thomas Walpole 2016-04-04 13:26:29 -07:00
parent 6a72a105b5
commit 1e4529b248
2 changed files with 7 additions and 2 deletions

View file

@ -3,13 +3,15 @@ sudo: false
rvm:
- 2.0.0
- 2.2
- 2.3.0
- jruby-9.0.3.0
- rbx-2
gemfile:
- Gemfile
matrix:
include:
- gemfile: Gemfile
rvm: 2.3.0
env: WINDOW_TEST=true
- gemfile: gemfiles/Gemfile.ruby-19
rvm: 1.9.3
- gemfile: gemfiles/Gemfile.ruby-19

View file

@ -12,11 +12,14 @@ module TestSessions
Selenium = Capybara::Session.new(:selenium_focus, TestApp)
end
Capybara::SpecHelper.run_specs TestSessions::Selenium, "selenium", :capybara_skip => [
skipped_tests = [
:response_headers,
:status_code,
:trigger
]
skipped_tests << :windows if ENV['TRAVIS'] && !ENV['WINDOW_TEST']
Capybara::SpecHelper.run_specs TestSessions::Selenium, "selenium", :capybara_skip => skipped_tests
RSpec.describe Capybara::Session do
context 'with selenium driver' do