Retire semantic_form_for
Also a buttload of form cleanups...
This commit is contained in:
parent
350b1ebbbe
commit
81853d1ef9
136 changed files with 1825 additions and 1441 deletions
|
|
@ -46,26 +46,6 @@ feature Conference do
|
|||
sign_in organizer
|
||||
visit edit_admin_conference_path(conference.short_title)
|
||||
|
||||
fill_in 'conference_title', with: 'New Con'
|
||||
fill_in 'conference_short_title', with: ''
|
||||
|
||||
day = Time.zone.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')}')")
|
||||
|
||||
page.accept_alert do
|
||||
click_button 'Update Conference'
|
||||
end
|
||||
|
||||
page.find('#flash')
|
||||
expect(flash)
|
||||
.to eq("Updating conference failed. Short title can't be blank.")
|
||||
page.find('#flash .close').click
|
||||
|
||||
fill_in 'conference_title', with: 'New Con'
|
||||
fill_in 'conference_short_title', with: 'NewCon'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue