demarches-normaliennes/spec/models
Pierre de La Morinerie 4cb747fdb6 specs: always require rails_helper
Test helpers are separated between two files: spec_helper and
rails_helper. This separation is meant to allow tests that do not
require Rails (like testing standalone libs) to boot faster.

The spec_helper file is always loaded, through `--require spec_helper`
in the `.rspec` config file. When needed, the rails_helper file is
expected to be required manually.

This is fine, but:
- Many test files have a redundant `require 'spec_helper'` line;
- Many test files should require `rails_helper`, but don't.

Not requiring `rails_helper` will cause the Rails-concerned section of
the test environment not to be configured–which may cause subtle bugs
(like the test database not being properly initialized).

Moreover, Spring loads all the Rails files on preloading anyway. So the
gains from using only `spec_helper` are thin.

To streamline this process, this commit:
- Configures `.rspec` to require `rails_helper` by default;
- Remove all manual requires to spec_helper or rails_helper.

Reference: https://stackoverflow.com/questions/24145329/how-is-spec-rails-helper-rb-different-from-spec-spec-helper-rb-do-i-need-it
2020-03-31 12:48:32 +02:00
..
champs specs: always require rails_helper 2020-03-31 12:48:32 +02:00
concern specs: always require rails_helper 2020-03-31 12:48:32 +02:00
types_de_champ specs: always require rails_helper 2020-03-31 12:48:32 +02:00
administrateur_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
administration_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
assign_to_spec.rb Assign Factory: automatically link to procedure.defaut_groupe_factory 2019-09-03 06:47:02 +02:00
attestation_template_spec.rb Do not permit to upload a GIF file via javascript 2020-02-25 23:33:15 +01:00
avis_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
bill_signature_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
champ_private_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
champ_shared_example.rb Revert "Revert "Merge pull request #4552 from tchak/champ-communes"" 2020-01-14 18:46:07 +01:00
champ_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
commentaire_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
dossier_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
drop_down_list_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
etablissement_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
exercice_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
export_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
france_connect_information_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
france_connect_particulier_client_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
groupe_instructeur_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
individual_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
instructeur_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
invite_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
procedure_overview_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
procedure_presentation_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
procedure_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
service_spec.rb refuse les numéros de tel invalides 2019-12-04 05:34:43 +01:00
siret_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
trusted_device_token_spec.rb trustedDeviceToken: move token youth 2019-02-18 17:20:49 +01:00
type_de_champ_private_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
type_de_champ_shared_example.rb Activate champ integer number on all the new procedures 2020-02-25 11:26:37 +01:00
type_de_champ_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
user_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00