Modify conference registration to a singular resource

This commit is contained in:
Arun Kumar 2016-07-05 00:10:18 +05:30
parent 8b831b1977
commit 0675572e05
No known key found for this signature in database
GPG key ID: 6C40CA6462DEA424
17 changed files with 37 additions and 37 deletions

View file

@ -19,10 +19,10 @@ feature Registration do
scenario 'updates conference registration', feature: true, js: true do
visit root_path
click_link 'My Registration'
expect(current_path).to eq(conference_conference_registrations_path(conference.short_title))
expect(current_path).to eq(conference_conference_registration_path(conference.short_title))
click_link 'Edit your Registration'
expect(current_path).to eq(edit_conference_conference_registrations_path(conference.short_title))
expect(current_path).to eq(edit_conference_conference_registration_path(conference.short_title))
click_button 'Update Registration'
expect(conference.user_registered?(participant)).to be(true)
@ -31,7 +31,7 @@ feature Registration do
scenario 'unregisters for a conference', feature: true, js: true do
visit root_path
click_link 'My Registration'
expect(current_path).to eq(conference_conference_registrations_path(conference.short_title))
expect(current_path).to eq(conference_conference_registration_path(conference.short_title))
click_link 'Unregister'
expect(conference.user_registered?(participant)).to be(false)
@ -43,7 +43,7 @@ feature Registration do
visit root_path
click_link 'Register'
expect(current_path).to eq(new_conference_conference_registrations_path(conference.short_title))
expect(current_path).to eq(new_conference_conference_registration_path(conference.short_title))
click_button 'Register'
expect(conference.user_registered?(participant)).to be(true)