Removes dulplicate conference update action and moves methods out of private area

This commit is contained in:
Chrisbr 2014-08-15 16:06:02 +02:00
parent 71bf793cdf
commit d0e9805456
3 changed files with 35 additions and 55 deletions

View file

@ -52,6 +52,13 @@ feature Conference do
click_link 'Edit'
fill_in 'conference_title', with: 'New Con'
fill_in 'conference_short_title', with: 'NewCon'
day = Date.today + 10
page.
execute_script("$('#conference-start-datepicker').val('" +
"#{day.strftime('%d/%m/%Y')}')")
page.
execute_script("$('#conference-end-datepicker').val('" +
"#{(day + 7).strftime('%d/%m/%Y')}')")
click_button 'Update Conference'
expect(flash).