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
1 changed files with 2 additions and 2 deletions

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