Merge pull request #2394 from betagouv/fix-dossier-spec-timecop

specs: fix order-dependant tests in spec/models/gestionnaire_spec.rb
This commit is contained in:
Paul Chavard 2018-08-14 09:58:43 +00:00 committed by GitHub
commit bac6eee379
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -453,9 +453,8 @@ describe Dossier do
let(:dossier) { create(:dossier, state: state) }
let(:beginning_of_day) { Time.now.beginning_of_day }
before do
Timecop.freeze(beginning_of_day)
end
before { Timecop.freeze(beginning_of_day) }
after { Timecop.return }
context 'when dossier is en_construction' do
before do