From 55983d657c857077ff0144e4c18d84194597b67e Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 30 Oct 2015 14:32:07 +0100 Subject: Simplify form: Don't mess with adding songs, display them all at once. --- spec/registration_spec.rb | 4 ---- spec/support/submit_form_helper.rb | 2 -- 2 files changed, 6 deletions(-) (limited to 'spec') diff --git a/spec/registration_spec.rb b/spec/registration_spec.rb index fbd2016..96ae18f 100644 --- a/spec/registration_spec.rb +++ b/spec/registration_spec.rb @@ -20,10 +20,6 @@ describe RegistrationApp do it 'displays the registration form' do expect(last_response.body).to match(/form id="registration-form"/) end - - it 'displays the add song button' do - expect(last_response.body).to match(/id="add-song-button"/) - end end describe 'POST submit' do diff --git a/spec/support/submit_form_helper.rb b/spec/support/submit_form_helper.rb index 45e7d67..3d881cb 100644 --- a/spec/support/submit_form_helper.rb +++ b/spec/support/submit_form_helper.rb @@ -15,8 +15,6 @@ module SubmitFormHelper end if params['songs'] - click_on 'Legg til låt' - within '#form-songs #song-1-info' do fill_in 'Tittel:', with: params['songs']['1']['title'] fill_in 'Lengde:', with: params['songs']['1']['time'] -- cgit v1.2.3