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

Ensure ordered specs are always tested in order

Otherwise they can be false-positive.
This commit is contained in:
Henry Blyth 2022-06-08 12:13:09 +01:00
parent d1aad55ff3
commit b8673c6fd9

View file

@ -15,7 +15,7 @@ RSpec.describe 'capybara/rspec' do
expect(self.class.ancestors).to include Capybara::RSpecMatcherProxies
end
context 'resetting session' do
context 'resetting session', order: :defined do
it 'sets a cookie in one example...' do
visit('/set_cookie')
expect(page.body).to include('Cookie set to test_cookie')
@ -27,7 +27,7 @@ RSpec.describe 'capybara/rspec' do
end
end
context 'setting the current driver' do
context 'setting the current driver', order: :defined do
it 'sets the current driver in one example...' do
Capybara.current_driver = :selenium
end