diff --git a/spec/features/home_spec.rb b/spec/features/home_spec.rb index 84e96d03d..0e26c6711 100644 --- a/spec/features/home_spec.rb +++ b/spec/features/home_spec.rb @@ -151,8 +151,6 @@ feature "Home" do visit root_path expect(page).not_to have_xpath(ie_alert_box_xpath, visible: false) expect(page.driver.request.cookies['ie_alert_closed']).to eq('true') - - Capybara.current_session.driver.header('', '') end scenario 'non-IE visitors are not bothered with IE alerts' do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 762a5444e..3479c711e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -57,6 +57,10 @@ RSpec.configure do |config| end end + config.before(:each, type: :feature) do + Capybara.reset_sessions! + end + config.before do DatabaseCleaner.start end