Skip to content

Commit

Permalink
Per review, small improvment
Browse files Browse the repository at this point in the history
  • Loading branch information
rioug committed Dec 10, 2024
1 parent 677f5e9 commit d7216ae
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions spec/system/admin/orders_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -452,14 +452,10 @@

context "orders with different order totals" do
before do
order2.contents.update_item(Spree::LineItem.where(order_id: order2.id).first,
{ quantity: 5 })
order3.contents.update_item(Spree::LineItem.where(order_id: order3.id).first,
{ quantity: 4 })
order4.contents.update_item(Spree::LineItem.where(order_id: order4.id).first,
{ quantity: 3 })
order5.contents.update_item(Spree::LineItem.where(order_id: order5.id).first,
{ quantity: 2 })
order2.contents.update_item(Spree::LineItem.find_by(order_id: order2.id), { quantity: 5 })
order3.contents.update_item(Spree::LineItem.find_by(order_id: order3.id), { quantity: 4 })
order4.contents.update_item(Spree::LineItem.find_by(order_id: order4.id), { quantity: 3 })
order5.contents.update_item(Spree::LineItem.find_by(order_id: order5.id), { quantity: 2 })

login_as_admin
visit spree.admin_orders_path
Expand Down

0 comments on commit d7216ae

Please sign in to comment.