Iterate over type_de_champ in repetition type_de_champ

This commit is contained in:
simon lehericey 2020-02-07 15:35:09 +01:00 committed by GitHub Action
parent a62e9fe6d2
commit 4f317e84d1
3 changed files with 28 additions and 0 deletions

View file

@ -11,4 +11,18 @@ describe Manager::ProceduresController, type: :controller do
it { expect(procedure.whitelisted_at).not_to be_nil }
end
describe '#show' do
render_views
let(:administration) { create(:administration) }
let!(:procedure) { create(:procedure, :with_repetition) }
before do
sign_in(administration)
get :show, params: { id: procedure.id }
end
it { expect(response.body).to include('sub type de champ') }
end
end