Skip to content

Commit

Permalink
Cover remove remove_item path.
Browse files Browse the repository at this point in the history
  • Loading branch information
stolarczykt authored and lukaszreszke committed Sep 26, 2024
1 parent 8121adf commit c2ec6ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rails_application/test/integration/orders_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def test_happy_path
assert_changes -> { Product.find(fearless_id).stock_level }, from: 10, to: 8 do
post "/orders/#{order_id}/add_item?product_id=#{fearless_id}"
post "/orders/#{order_id}/add_item?product_id=#{fearless_id}"
post "/orders/#{order_id}/remove_item?product_id=#{fearless_id}"
post "/orders/#{order_id}/add_item?product_id=#{fearless_id}"
end
get "/orders/#{order_id}/edit"
assert_remove_buttons_visible(async_remote_id, fearless_id, order_id)
Expand Down

0 comments on commit c2ec6ec

Please sign in to comment.