Skip to content

Commit 099ffc2

Browse files
committed
fix tests in rails_application
1 parent aaa2aa5 commit 099ffc2

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

rails_application/test/client_orders/item_removed_from_basket_test.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def test_remove_item_when_quantity_gt_1
4747
Pricing::PriceItemRemoved.new(
4848
data: {
4949
order_id: order_id,
50-
product_id: product_id
50+
product_id: product_id,
51+
price: 20,
5152
}
5253
)
5354
)
@@ -93,7 +94,8 @@ def test_remove_item_when_quantity_eq_1
9394
Pricing::PriceItemRemoved.new(
9495
data: {
9596
order_id: order_id,
96-
product_id: product_id
97+
product_id: product_id,
98+
price: 20,
9799
}
98100
)
99101
)
@@ -169,7 +171,8 @@ def test_remove_item_when_there_is_another_item
169171
Pricing::PriceItemRemoved.new(
170172
data: {
171173
order_id: order_id,
172-
product_id: another_product_id
174+
product_id: another_product_id,
175+
price: 20,
173176
}
174177
)
175178
)

rails_application/test/orders/broadcast_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def test_broadcast_remove_item_from_basket
9595
data: {
9696
order_id: order_id,
9797
product_id: product_id,
98+
price: 20,
9899
}
99100
)
100101
)

rails_application/test/orders/item_removed_from_basket_test.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def test_remove_item_when_quantity_gt_1
4646
item_removed_from_basket = Pricing::PriceItemRemoved.new(
4747
data: {
4848
order_id: order_id,
49-
product_id: product_id
49+
product_id: product_id,
50+
price: 20,
5051
}
5152
)
5253
event_store.publish(item_removed_from_basket)
@@ -93,7 +94,8 @@ def test_remove_item_when_quantity_eq_1
9394
Pricing::PriceItemRemoved.new(
9495
data: {
9596
order_id: order_id,
96-
product_id: product_id
97+
product_id: product_id,
98+
price: 20,
9799
}
98100
)
99101
)
@@ -169,7 +171,8 @@ def test_remove_item_when_there_is_another_item
169171
Pricing::PriceItemRemoved.new(
170172
data: {
171173
order_id: order_id,
172-
product_id: another_product_id
174+
product_id: another_product_id,
175+
price: 20,
173176
}
174177
)
175178
)

0 commit comments

Comments
 (0)