[style] fix style
This commit is contained in:
parent
11a4d200f7
commit
59d19b3ae8
1 changed files with 3 additions and 3 deletions
|
|
@ -446,10 +446,10 @@ describe User do
|
||||||
let(:registration_ticket) { create(:registration_ticket, price_cents: 0) }
|
let(:registration_ticket) { create(:registration_ticket, price_cents: 0) }
|
||||||
let(:conference3) { create(:conference, short_title: 'oSC17', title: 'openSUSE Conference 2017', tickets: [registration_ticket]) }
|
let(:conference3) { create(:conference, short_title: 'oSC17', title: 'openSUSE Conference 2017', tickets: [registration_ticket]) }
|
||||||
let(:ticket_purchase) { create(user: user, conference: conference3, ticket: registration_ticket, quantity: 1) }
|
let(:ticket_purchase) { create(user: user, conference: conference3, ticket: registration_ticket, quantity: 1) }
|
||||||
|
|
||||||
it 'counts the number of registration tickets of a conference held by user' do
|
it 'counts the number of registration tickets of a conference held by user' do
|
||||||
expect(user.count_registration_tickets(conference3).eq(1))
|
expect(user.count_registration_tickets(conference3).to eq(1))
|
||||||
expect(user.count_registration_tickets(conference2).eq(0))
|
expect(user.count_registration_tickets(conference2).to eq(0))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue