Correction teste view

This commit is contained in:
Xavier J 2015-09-24 10:42:14 +02:00
parent ded5a6a28f
commit ea0b64a9dc
5 changed files with 15 additions and 41 deletions

View file

@ -11,14 +11,4 @@ describe 'dossiers/_infos_dossier.html.haml', type: :view do
assign(:commentaires, dossier.commentaires)
render
end
context 'dossier is at state Draft' do
it 'button Mettre à jours les informations is present' do
expect(rendered).to have_content(maj_infos)
expect(rendered).to have_selector("a[href='/dossiers/#{dossier.id}/description?back_url=recapitulatif']");
end
it 'button Soumettre is present' do
expect(rendered).to have_selector("button[type=submit][value='#{soumettre}']");
end
end
end

View file

@ -35,13 +35,5 @@ describe 'recapitulatif/_commentaires_flux.html.haml', type: :view do
it 'Champs de texte' do
expect(rendered).to have_selector('textarea[id=texte_commentaire][name=texte_commentaire]')
end
it 'Champs email' do
expect(rendered).to have_selector('input[id=email_commentaire][name=email_commentaire]')
end
it 'Champs email est prérempli' do
expect(rendered).to have_content(email_commentaire)
end
end
end