Make spec thread safe...
Something(???) has changed that Github Actions has become *so* fast that those hit now...
This commit is contained in:
parent
4b833840fd
commit
eb16282a01
4 changed files with 9 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue