spec: fix Flipflop state not being reseted after test

This would cause the Support specs to fail randomly with an unexpected
redirection.
This commit is contained in:
Pierre de La Morinerie 2018-09-19 12:34:56 +02:00
parent c98ec1c746
commit a63e035daf

View file

@ -10,6 +10,10 @@ describe 'Dossier details:' do
Flipflop::FeatureSet.current.test!.switch!(:new_dossier_details, true)
end
after do
Flipflop::FeatureSet.current.test!.switch!(:new_dossier_details, false)
end
scenario 'the user can see the summary of the dossier status' do
visit_dossier dossier