Skip to content

Commit

Permalink
add insert ticket spec
Browse files Browse the repository at this point in the history
  • Loading branch information
awadyas authored and wwahammy committed May 15, 2023
1 parent cdfbbeb commit 11af9db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/lib/insert/insert_tickets_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,13 @@ def success_expectations
it 'increases TicketPurchase by 1' do
expect { result }.to change {TicketPurchase.count}.by(1)
end

it 'creates a subtransaction payment whose creation date matches the legacy payment\'s date' do
legacy_payment = result['payment']
subtransaction_payment = legacy_payment.subtransaction_payment

expect(subtransaction_payment.created).to eq(legacy_payment.created_at)
end
end
end

Expand Down

0 comments on commit 11af9db

Please sign in to comment.