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:
Pierre de La Morinerie 2018-08-14 11:38:37 +02:00
parent dd252b515b
commit 242f9d0af7

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