demarches-normaliennes/spec
Pierre de La Morinerie 12d17bc245 spec: fix Timecop.freeze without Timecop.return
Time was frozen without being un-frozen at the end of the spec.

This caused a spec in `Procedure#publish_or_reopen!` to fail randomly.

Fixed by using the `Timecop.freeze do` form, which unfreezes after the
execution of the block.
2021-06-17 17:36:43 +02:00
..
controllers tests 2021-06-15 19:36:46 +02:00
factories add spec for dossier weight estimation 2021-06-09 10:52:38 +02:00
features routes: replace the email param in the Avis URLs by a query param 2021-06-17 11:15:51 +02:00
fixtures add csv fixture file 2021-06-15 19:36:47 +02:00
helpers add spec for archive weight estimation 2021-06-09 10:52:38 +02:00
jobs Prevent double processing of declarative dossiers 2021-06-04 17:55:40 +02:00
lib Fix api education wrong data type 2021-06-08 12:25:24 +02:00
mailers routes: replace the email param in the Avis URLs by a query param 2021-06-17 11:15:51 +02:00
middlewares specs: always require rails_helper 2020-03-31 12:48:32 +02:00
models spec: fix Timecop.freeze without Timecop.return 2021-06-17 17:36:43 +02:00
policies policies: fix champ policy for guest users 2020-04-02 11:27:14 +02:00
serializers Add compatibility cadsatre layer with old API GEO 2021-05-24 11:57:00 +02:00
services tests 2021-06-15 19:36:46 +02:00
support jobs: extract an RetryOnTranscientErrors concern 2021-04-29 14:08:12 +02:00
views extract NB_DAYS_RECENT_DOSSIERS and PERCENTILE 2021-06-17 16:31:53 +02:00
rails_helper.rb spec: better split spec_helper and rails_helper 2021-03-04 22:59:39 +01:00
spec_helper.rb Chore(test): enable rspec only-failures support 2021-04-15 14:17:39 +02:00