delete unused methods, add feature tests
This commit is contained in:
parent
3b4c7d70c0
commit
223a0eead9
7 changed files with 165 additions and 47 deletions
|
|
@ -65,14 +65,11 @@ describe Payment do
|
|||
ticket_id: ticket_1.id).first
|
||||
|
||||
expect(TicketPurchase.count).to eq(1)
|
||||
# expect(purchase.quantity).to eq(1)
|
||||
expect(purchase.quantity).to eq(1)
|
||||
expect(message.blank?).to be true
|
||||
|
||||
payment = Payment.new
|
||||
payment.purchase(participant, conference, 1000)
|
||||
|
||||
expect(Payment.count).to eq(1)
|
||||
expect(payment.blank?).to be true
|
||||
payment = Payment.new
|
||||
payment.purchase(participant, conference, 1000)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue