Make spec thread safe...

Something(???) has changed that Github Actions has become *so* fast that those hit now...
This commit is contained in:
Henne Vogelsang 2025-08-05 17:50:55 +02:00
parent 4b833840fd
commit eb16282a01
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
4 changed files with 9 additions and 8 deletions

View file

@ -41,12 +41,10 @@ feature Ticket do
click_button 'Update Ticket'
ticket.reload
# It's necessary to multiply by 100 because the price is in cents
page.find('#flash')
expect(flash).to eq('Ticket successfully updated.')
expect(ticket.price).to eq(Money.new(50 * 100, 'USD'))
expect(ticket.title).to eq('Event Ticket')
expect(ticket.reload.price.to_i).to eq(50)
expect(ticket.reload.title).to eq('Event Ticket')
expect(Ticket.count).to eq(2)
end