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(:dossier) { create(:dossier, state: state) }
|
||||||
let(:beginning_of_day) { Time.now.beginning_of_day }
|
let(:beginning_of_day) { Time.now.beginning_of_day }
|
||||||
|
|
||||||
before do
|
before { Timecop.freeze(beginning_of_day) }
|
||||||
Timecop.freeze(beginning_of_day)
|
after { Timecop.return }
|
||||||
end
|
|
||||||
|
|
||||||
context 'when dossier is en_construction' do
|
context 'when dossier is en_construction' do
|
||||||
before do
|
before do
|
||||||
|
|
Loading…
Reference in a new issue