specs: fix order-dependant tests in spec/models/gestionnaire_spec.rb
Test run that would fail randomly before: ``` bin/rspec --seed 10002 spec/models/dossier_spec.rb spec/models/gestionnaire_spec.rb ```
This commit is contained in:
parent
dd252b515b
commit
242f9d0af7
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