rubocop/linter fixes
This commit is contained in:
parent
c635ccfbaf
commit
a754f6040a
1 changed files with 9 additions and 9 deletions
|
|
@ -173,34 +173,34 @@ feature Splashpage do
|
||||||
scenario 'user signed in with no tickets', feature: true do
|
scenario 'user signed in with no tickets', feature: true do
|
||||||
sign_in participant
|
sign_in participant
|
||||||
visit conference_path(conference.short_title)
|
visit conference_path(conference.short_title)
|
||||||
expect(page).to have_content ("You have not purchased any tickets for this conference yet.")
|
expect(page).to have_content 'You have not purchased any tickets for this conference yet.'
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'user signed in with 1 free ticket', feature: true do
|
scenario 'user signed in with 1 free ticket', feature: true do
|
||||||
sign_in participant
|
sign_in participant
|
||||||
purchase = create(:ticket_purchase, conference: conference, user: participant, ticket: ticket_1, quantity: 1)
|
create(:ticket_purchase, conference: conference, user: participant, ticket: free_ticket, quantity: 1)
|
||||||
visit conference_path(conference.short_title)
|
visit conference_path(conference.short_title)
|
||||||
expect(page).not_to have_content ("You have not purchased any tickets for this conference yet.")
|
expect(page).not_to have_content 'You have not purchased any tickets for this conference yet.'
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'user signed in with 1 paid ticket', feature: true do
|
scenario 'user signed in with 1 paid ticket', feature: true do
|
||||||
sign_in participant
|
sign_in participant
|
||||||
purchase = create(:ticket_purchase, conference: conference, user: participant, ticket: ticket_1, quantity: 1)
|
create(:ticket_purchase, conference: conference, user: participant, ticket: ticket_1, quantity: 1)
|
||||||
visit conference_path(conference.short_title)
|
visit conference_path(conference.short_title)
|
||||||
expect(page).not_to have_content ("You have not purchased any tickets for this conference yet.")
|
expect(page).not_to have_content 'You have not purchased any tickets for this conference yet.'
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'user signed in with multiple ticket', feature: true do
|
scenario 'user signed in with multiple ticket', feature: true do
|
||||||
sign_in participant
|
sign_in participant
|
||||||
purchase1 = create(:ticket_purchase, conference: conference, user: participant, ticket: ticket_1, quantity: 1)
|
create(:ticket_purchase, conference: conference, user: participant, ticket: ticket_1, quantity: 1)
|
||||||
purchase2 = create(:ticket_purchase, conference: conference, user: participant, ticket: free_ticket, quantity: 1)
|
create(:ticket_purchase, conference: conference, user: participant, ticket: free_ticket, quantity: 1)
|
||||||
visit conference_path(conference.short_title)
|
visit conference_path(conference.short_title)
|
||||||
expect(page).not_to have_content ("You have not purchased any tickets for this conference yet.")
|
expect(page).not_to have_content 'You have not purchased any tickets for this conference yet.'
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'user not signed in', feature: true do
|
scenario 'user not signed in', feature: true do
|
||||||
visit conference_path(conference.short_title)
|
visit conference_path(conference.short_title)
|
||||||
expect(page).not_to have_content ("You have not purchased any tickets for this conference yet.")
|
expect(page).not_to have_content 'You have not purchased any tickets for this conference yet.'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue