Remove trailing spaces

This commit is contained in:
gregoirenovel 2017-04-04 15:28:39 +02:00
parent e0e452b70f
commit 87ab2ba9eb
17 changed files with 26 additions and 26 deletions

View file

@ -4,11 +4,11 @@ describe 'users/carte/show.html.haml', type: :view do
let(:state) { 'draft' }
let(:dossier) { create(:dossier, state: state) }
let(:dossier_id) { dossier.id }
before do
assign(:dossier, dossier)
end
context 'sur la page de la carte d\'une demande' do
before do
render
@ -20,23 +20,23 @@ describe 'users/carte/show.html.haml', type: :view do
it 'la carte est bien présente' do
expect(rendered).to have_selector('#map')
end
context 'présence des inputs hidden' do
it 'stockage du json des polygons dessinés' do
expect(rendered).to have_selector('input[type=hidden][id=json_latlngs][name=json_latlngs]', visible: false)
end
end
context 'si la page précédente n\'est pas recapitulatif' do
it 'le bouton "Etape suivante" est présent' do
expect(rendered).to have_selector('#etape_suivante')
end
# it 'le bouton Etape suivante possède un onclick correct' do
# expect(rendered).to have_selector('input[type=submit][id=etape_suivante][onclick=\'submit_check_draw(event)\']')
# end
end
context 'si la page précédente est recapitularif' do
let(:state) { 'initiated' }
@ -47,11 +47,11 @@ describe 'users/carte/show.html.haml', type: :view do
it 'le bouton "Modification terminé" est présent' do
expect(rendered).to have_selector('#modification_terminee')
end
# it 'le bouton "Modification terminé" possède un onclick correct' do
# expect(rendered).to have_selector('input[type=submit][id=modification_terminee][onclick=\'submit_check_draw(event)\']')
# end
it 'le lien de retour au récapitulatif est présent' do
expect(rendered).to have_selector("a[href='/users/dossiers/#{dossier_id}/recapitulatif']")
end