demarches-normaliennes/spec
Pierre de La Morinerie 970c3e4b2b specs: avoid executing business logic in Procedure factory
Calling business logic in a factory is a code-smell, because it
usually requires the object to be saved into database, and may have
unintended consequences when the business logic is changed.

Also, this allows to just build a published procedure, without saving it
to the database.
2021-11-23 08:07:07 +01:00
..
controllers specs: improve search controller specs 2021-11-23 08:07:07 +01:00
factories specs: avoid executing business logic in Procedure factory 2021-11-23 08:07:07 +01:00
fixtures homogennize api particulier endpoint test url 2021-10-12 14:27:20 +02:00
helpers specs: avoid executing business logic in Procedure factory 2021-11-23 08:07:07 +01:00
jobs specs: minor cleanups 2021-11-23 08:07:07 +01:00
lib source service supports unknown scope 2021-10-12 14:27:20 +02:00
mailers specs: avoid executing business logic in Procedure factory 2021-11-23 08:07:07 +01:00
middlewares specs: always require rails_helper 2020-03-31 12:48:32 +02:00
models specs: avoid executing business logic in Procedure factory 2021-11-23 08:07:07 +01:00
policies factories: cleanup Administrateur, Instructeur and Expert factories 2021-10-26 12:03:30 +02:00
serializers specs: explicitely pass the dossier to champs factories 2021-11-23 08:07:07 +01:00
services specs: avoid executing business logic in Procedure factory 2021-11-23 08:07:07 +01:00
support feat(champ): ask for departement before asking for commune 2021-11-04 11:55:25 +01:00
system specs: avoid executing business logic in Procedure factory 2021-11-23 08:07:07 +01:00
views specs: avoid executing business logic in Procedure factory 2021-11-23 08:07:07 +01:00
rails_helper.rb specs: migrate from features to system specs 2021-10-26 12:24:46 +02:00
spec_helper.rb Chore(test): enable rspec only-failures support 2021-04-15 14:17:39 +02:00