demarches-normaliennes/spec
Pierre de La Morinerie b748e9773f attachments: fix opening the delete link directly
When cliking on the "Delete attachment" link, and opening the URL
in a new tab, the `DELETE /attachements/:id` will become
`GET /attachments/:id` – which will cause the `show` action to be
routed with an html format (instead of JS).

In that case, we don't want to throw an error at the user face.
Instead simply re-render the dossier page (if any).

Fix a long-standing error in Sentry.
2020-04-08 13:40:32 +02:00
..
controllers attachments: fix opening the delete link directly 2020-04-08 13:40:32 +02:00
factories DeletedDossier should have access to discarded demarche 2020-03-31 17:08:29 +02:00
features copy groupe_instructeurs when clone 2020-04-07 09:22:33 +02:00
fixtures dossiers: allow auto upload of attachments 2020-03-31 13:09:44 +02:00
helpers specs: always require rails_helper 2020-03-31 12:48:32 +02:00
jobs specs: always require rails_helper 2020-03-31 12:48:32 +02:00
lib specs: always require rails_helper 2020-03-31 12:48:32 +02:00
mailers Refactor notify near deletion mailers 2020-04-01 17:40:52 +02:00
middlewares specs: always require rails_helper 2020-03-31 12:48:32 +02:00
models do not clone groups instructeurs for admin outside the procedure 2020-04-07 09:25:40 +02:00
policies policies: fix champ policy for guest users 2020-04-02 11:27:14 +02:00
serializers Fix tests involving attachment urls 2020-01-08 14:46:18 +01:00
services Refactor expired dossiers deletion service 2020-04-02 15:24:02 +02:00
support specs: remove unused wait-for-ajax helper 2020-03-31 12:54:49 +02:00
views specs: always require rails_helper 2020-03-31 12:48:32 +02:00
rails_helper.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
spec_helper.rb rspec: allow Rails to auto-migrate the test schema 2020-03-31 12:48:32 +02:00