Use assign_to

This commit is contained in:
simon lehericey 2019-08-21 16:16:53 +02:00
parent 31cb056351
commit caf1fbca44
4 changed files with 7 additions and 7 deletions

View file

@ -23,7 +23,7 @@ describe 'admin/procedures/show.html.haml', type: :view do
context 'when procedure have a gestionnare affected' do
before do
create :assign_to, instructeur: create(:instructeur), procedure: procedure
create(:instructeur).assign_to_procedure(procedure)
render
end