Refactoring Conference Basics #384
This commit is contained in:
parent
ac25561523
commit
a8b94c13f3
13 changed files with 309 additions and 109 deletions
|
|
@ -39,6 +39,15 @@ feature Conference do
|
|||
sign_in create(user)
|
||||
|
||||
visit edit_admin_conference_path(conference.short_title)
|
||||
click_link 'Edit'
|
||||
fill_in 'conference_title', with: 'New Con'
|
||||
fill_in 'conference_short_title', with: ''
|
||||
|
||||
click_button 'Update Conference'
|
||||
expect(flash).
|
||||
to eq("Updating conference failed. Short title can't be blank.")
|
||||
|
||||
click_link 'Edit'
|
||||
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