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