fix failing tests
This commit is contained in:
parent
f6088e9abe
commit
f485f4ce57
4 changed files with 23 additions and 7 deletions
|
|
@ -24,7 +24,7 @@ feature Conference do
|
|||
|
||||
click_button 'Create Conference'
|
||||
|
||||
expect(page.find('#flash_notice').text).
|
||||
expect(flash).
|
||||
to eq('Conference was successfully created.')
|
||||
expect(Conference.count).to eq(expected_count)
|
||||
end
|
||||
|
|
@ -40,7 +40,7 @@ feature Conference do
|
|||
fill_in 'conference_social_tag', with: 'NewCon'
|
||||
|
||||
click_button 'Update Conference'
|
||||
expect(page.find('#flash_notice').text).
|
||||
expect(flash).
|
||||
to eq('Conference was successfully updated.')
|
||||
|
||||
conference.reload
|
||||
|
|
@ -70,7 +70,7 @@ feature Conference do
|
|||
|
||||
click_button 'Update Venue'
|
||||
|
||||
expect(page.find('#flash_notice').text).
|
||||
expect(flash).
|
||||
to eq('Venue was successfully updated.')
|
||||
|
||||
venue = Conference.find(conference.id).venue
|
||||
|
|
@ -90,7 +90,7 @@ feature Conference do
|
|||
'sed diam voluptua. new'
|
||||
|
||||
click_button 'Update Venue'
|
||||
expect(page.find('#flash_notice').text).
|
||||
expect(flash).
|
||||
to eq('Venue was successfully updated.')
|
||||
|
||||
venue.reload
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ feature Event do
|
|||
|
||||
click_button 'Update'
|
||||
|
||||
expect(page.find('#flash_notice').text).
|
||||
expect(flash).
|
||||
to eq('You updated your account successfully.')
|
||||
|
||||
expect(Event.count).to eq(expected_count)
|
||||
|
|
@ -78,12 +78,12 @@ feature Event do
|
|||
expect(page.has_content?('Example Proposal')).to be true
|
||||
expect(page.has_content?('Accepted (confirmation pending)')).to be true
|
||||
click_link "confirm_proposal_#{event.id}"
|
||||
expect(page.find('#flash_notice').text).
|
||||
expect(flash).
|
||||
to eq('Event was confirmed. Please register to attend the conference.')
|
||||
|
||||
find('#register').click
|
||||
|
||||
expect(page.find('#flash_notice').text).
|
||||
expect(flash).
|
||||
to eq('You are now registered.')
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue