update state date in aasm after callbacks

call aasm event methods, not state methods directly
This commit is contained in:
Christophe Robillard 2020-07-01 17:31:08 +02:00
parent 161b63f487
commit f631acd118
5 changed files with 52 additions and 41 deletions

View file

@ -657,7 +657,7 @@ describe Users::DossiersController, type: :controller do
let!(:invite) { create(:invite, dossier: dossier, user: user) }
before do
dossier.en_construction!
dossier.passer_en_construction!
subject
end