From 9ece3b056464ad3cc3589b0b3f4ae439220ba1fb Mon Sep 17 00:00:00 2001 From: rajavi-mishra Date: Fri, 30 Apr 2021 01:15:55 -0700 Subject: [PATCH] rubocop/linter fixes --- spec/features/splashpage_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/features/splashpage_spec.rb b/spec/features/splashpage_spec.rb index f0c7d997..d5810ca7 100644 --- a/spec/features/splashpage_spec.rb +++ b/spec/features/splashpage_spec.rb @@ -173,34 +173,34 @@ feature Splashpage do scenario 'user signed in with no tickets', feature: true do sign_in participant 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 scenario 'user signed in with 1 free ticket', feature: true do 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) - 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 scenario 'user signed in with 1 paid ticket', feature: true do 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) - 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 scenario 'user signed in with multiple ticket', feature: true do sign_in participant - purchase1 = 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: ticket_1, quantity: 1) + create(:ticket_purchase, conference: conference, user: participant, ticket: free_ticket, quantity: 1) 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 scenario 'user not signed in', feature: true do 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