first raw implementation of the form

This commit is contained in:
2015-10-05 12:40:08 +02:00
parent af827b7e77
commit 1d8eb08db4
20 changed files with 478 additions and 8 deletions
+20
View File
@@ -0,0 +1,20 @@
require 'rails_helper'
feature 'Support announcement' do
scenario 'User announces support' do
visit root_path
fill_in 'Vorname', with: 'Christoph'
fill_in 'Nachname', with: 'Blocher'
fill_in 'Adresse / Strasse', with: 'Wängirain 53'
fill_in 'Postleitzahl', with: '8704'
fill_in 'E-Mail', with: 'blocher@blocher.ch'
fill_in 'E-Mail', with: 'blocher@blocher.ch'
choose 'Ich unterschreibe eine Volksinitiative für die Freigabe von Cannabis und helfe aktiv Unterchriften in meinr Umgebung zu sammeln.'
choose 'Ich bin über 64 Jahre alt'
expect { click_button 'Unterstützung zusichern' }.to change { Supporter.count }.by(1)
end
end