Update rails to version 4.2
Furthermore it was necessary to add the following gems: - responders - web-console And additional it was necessary to update these gems manually: - devise - turbolinks - delayed_job_active_record - money-rails And the corresponding dependencies. http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-4-1-to-rails-4-2
This commit is contained in:
parent
57610eb39e
commit
9e9c536946
5 changed files with 110 additions and 69 deletions
|
|
@ -52,7 +52,8 @@ feature Ticket do
|
|||
click_button 'Update Ticket'
|
||||
|
||||
ticket.reload
|
||||
expect(ticket.price).to eq(50)
|
||||
# It's necessary to multiply by 100 because the price is in cents
|
||||
expect(ticket.price).to eq(Money.new(50 * 100, 'USD'))
|
||||
expect(ticket.title).to eq('Free Ticket')
|
||||
expect(flash).to eq('Ticket successfully updated.')
|
||||
expect(Ticket.count).to eq(1)
|
||||
|
|
@ -68,7 +69,8 @@ feature Ticket do
|
|||
click_button 'Update Ticket'
|
||||
|
||||
ticket.reload
|
||||
expect(ticket.price).to eq(100)
|
||||
# It's necessary to multiply by 100 because the price is in cents
|
||||
expect(ticket.price).to eq(Money.new(100 * 100, 'USD'))
|
||||
expect(ticket.title).to eq('Business Ticket')
|
||||
expect(flash).to eq("Ticket update failed: Title can't be blank. Price cents must be greater than 0.")
|
||||
expect(Ticket.count).to eq(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue