Removes dulplicate conference update action and moves methods out of private area
This commit is contained in:
parent
71bf793cdf
commit
d0e9805456
3 changed files with 35 additions and 55 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue