Skip to content

Commit 7baefa0

Browse files
committed
fix: handle Ruby 3.0 keyword argument conventions
1 parent 6dae4da commit 7baefa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/fulfillment_order_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def setup
315315
fulfillment_order_line_items: [{ id: 1, quantity: 1 }],
316316
message: "Fulfill this FO, please.",
317317
}
318-
response_fulfillment_orders = fulfillment_order.request_fulfillment(params)
318+
response_fulfillment_orders = fulfillment_order.request_fulfillment(**params)
319319

320320
assert_equal('closed', fulfillment_order.status)
321321
assert_equal(3, response_fulfillment_orders.size)
@@ -367,7 +367,7 @@ def setup
367367
fulfillment_order_line_items: [{ id: 1, quantity: 1 }],
368368
message: "Fulfill this FO, please.",
369369
}
370-
response_fulfillment_orders = fulfillment_order.request_fulfillment(params)
370+
response_fulfillment_orders = fulfillment_order.request_fulfillment(**params)
371371

372372
assert_equal('closed', fulfillment_order.status)
373373
assert_equal(3, response_fulfillment_orders.size)

0 commit comments

Comments
 (0)