Refactoring Conference Basics #384

This commit is contained in:
Chrisbr 2014-08-07 21:33:08 +02:00
parent ac25561523
commit a8b94c13f3
13 changed files with 309 additions and 109 deletions

View file

@ -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'