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:
parent
d1aad55ff3
commit
b8673c6fd9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue