Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
marlena-b authored and andrzejkrzywda committed Sep 17, 2024
1 parent fddc415 commit dc58697
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ def test_successful_order_submission
prepare_product(product_id, "Async Remote", 49)
run_command(Ordering::AddItemToBasket.new(order_id: order_id, product_id: product_id))

assert_equal true, SubmitService.new(order_id: order_id, customer_id: customer_id).call
Client::Orders::SubmitService.new(order_id: order_id, customer_id: customer_id).call

order = ClientOrders::Order.find_by!(order_uid: order_id)

assert_equal "Submitted", order.state
assert_equal customer_id, order.client_uid
end

def test_order_submission_with_unavailable_products
Expand Down

0 comments on commit dc58697

Please sign in to comment.