Changed physical_ticket to plural

This commit is contained in:
rishabhptr 2017-09-26 21:43:18 +05:30 committed by Stella Rouzi
parent 2247231d6e
commit 568d89b620
12 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,6 @@
require 'spec_helper'
describe PhysicalTicketController do
describe PhysicalTicketsController do
let(:conference) { create(:conference) }
let(:user) { create(:user) }
let(:paid_ticket_purchase) { create(:ticket_purchase, conference: conference, user: user) }

View file

@ -103,7 +103,7 @@ feature Registration do
click_button 'Continue'
expect(current_path).to eq(conference_physical_ticket_index_path(conference.short_title))
expect(current_path).to eq(conference_physical_tickets_path(conference.short_title))
purchase = TicketPurchase.where(user_id: participant.id, ticket_id: free_ticket.id).first
expect(purchase.quantity).to eq(5)
expect(purchase.paid).to be true