Tests: add (or group) Timecop.return to resume time in specs
This commit is contained in:
parent
aa33cb9470
commit
d90e22e332
8 changed files with 21 additions and 33 deletions
|
@ -5,6 +5,7 @@ RSpec.describe AutoReceiveDossiersForProcedureJob, type: :job do
|
|||
let(:date) { Time.utc(2017, 9, 1, 10, 5, 0) }
|
||||
|
||||
before { Timecop.freeze(date) }
|
||||
after { Timecop.return }
|
||||
|
||||
subject { AutoReceiveDossiersForProcedureJob.new.perform(procedure_id) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue