Skip to content

Commit 911c331

Browse files
committed
formatting only change
1 parent 39a6160 commit 911c331

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

ecommerce/processes/test/three_plus_one_free_test.rb

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,13 @@ def test_change_free_product_if_the_cheapest_order_line_is_removed
101101
private
102102

103103
def set_price(product_id, amount)
104-
Pricing::PriceSet.new(data: { product_id: product_id, price: amount })
104+
Pricing::PriceSet.new(data: { product_id:, price: amount })
105105
end
106106

107107
def item_added_event(order_id, product_id, price, times: 1)
108108
times.times.collect do
109109
Pricing::PriceItemAdded.new(
110-
data: {
111-
order_id: order_id,
112-
product_id: product_id,
113-
price: price
114-
}
110+
data: { order_id:, product_id:, price: }
115111
)
116112
end
117113
end
@@ -127,21 +123,15 @@ def item_removed_event(order_id, product_id, price, times: 1)
127123
def product_made_for_free(order_id, product_id)
128124
[
129125
Pricing::ProductMadeFreeForOrder.new(
130-
data: {
131-
order_id: order_id,
132-
product_id: product_id
133-
}
126+
data: { order_id:, product_id: }
134127
)
135128
]
136129
end
137130

138131
def free_product_removed(order_id, product_id)
139132
[
140133
Pricing::FreeProductRemovedFromOrder.new(
141-
data: {
142-
order_id: order_id,
143-
product_id: product_id
144-
}
134+
data: { order_id:, product_id: }
145135
)
146136
]
147137
end

0 commit comments

Comments
 (0)