Add Ruby 2.6 to test matrix

This commit is contained in:
Thomas Walpole 2018-12-26 15:49:46 -08:00
parent 7fca910080
commit c4678f93a2
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ dist: trusty
services:
- docker
rvm:
- 2.5.3
- 2.6.0
- jruby-9.2.4.0
gemfile:
- Gemfile

View File

@ -106,7 +106,7 @@ Capybara::SpecHelper.spec '#find' do
expect(@session.find(:xpath, "//input[@id='test_field']").value).to eq('monkey')
end
it 'should warn if passed a non-valid locator type', :focus_ do
it 'should warn if passed a non-valid locator type' do
expect_any_instance_of(Kernel).to receive(:warn).with(/must respond to to_xpath or be an instance of String/)
expect { @session.find(:xpath, 123) }.to raise_error # rubocop:disable RSpec/UnspecifiedException
end