diff --git a/.travis.yml b/.travis.yml index 6408d6d5..42066950 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/spec/selenium_spec.rb b/spec/selenium_spec.rb index 91ef1768..334cd5c2 100644 --- a/spec/selenium_spec.rb +++ b/spec/selenium_spec.rb @@ -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