mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix the test failures
This commit is contained in:
parent
50e876dd6f
commit
e85ecede4c
29 changed files with 232 additions and 232 deletions
|
|
@ -54,11 +54,11 @@ describe Ticket do
|
|||
create(:ticket_purchase,
|
||||
user: user,
|
||||
ticket: ticket)
|
||||
expect(ticket.bought?(user)).to eq(true)
|
||||
expect(ticket.bought?(user)).to be(true)
|
||||
end
|
||||
|
||||
it 'returns false if the user has not bought this ticket' do
|
||||
expect(ticket.bought?(user)).to eq(false)
|
||||
expect(ticket.bought?(user)).to be(false)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ describe Ticket do
|
|||
context 'user has not paid' do
|
||||
|
||||
it 'returns true' do
|
||||
expect(ticket.unpaid?(user)).to eq(true)
|
||||
expect(ticket.unpaid?(user)).to be(true)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ describe Ticket do
|
|||
before { ticket_purchase.update_attribute(:paid, true) }
|
||||
|
||||
it 'returns false' do
|
||||
expect(ticket.unpaid?(user)).to eq(false)
|
||||
expect(ticket.unpaid?(user)).to be(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue