Skip to content

Commit d6de0fe

Browse files
committed
Fix test - kill last mutant
1 parent 4fda664 commit d6de0fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ecommerce/pricing/test/apply_time_promotion_test.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ class ApplyTimePromotionTest < Test
55
cover "Pricing*"
66

77
def test_applies_biggest_time_promotion_discount
8-
skip 'This test is skipped because it doesnt fit into new design.'
98

109
order_id = SecureRandom.uuid
1110
product_id = SecureRandom.uuid
@@ -59,7 +58,7 @@ def create_active_time_promotion(discount)
5958
end
6059

6160
def item_added_to_basket_event(order_id, product_id)
62-
Pricing::PriceItemAdded.new(
61+
price_item_added = Pricing::PriceItemAdded.new(
6362
data: {
6463
product_id: product_id,
6564
order_id: order_id,
@@ -69,6 +68,8 @@ def item_added_to_basket_event(order_id, product_id)
6968
total_value: 1000
7069
}
7170
)
71+
event_store.append(price_item_added, stream_name: stream_name(order_id))
72+
price_item_added
7273
end
7374

7475
def set_time_promotion_discount(order_id, discount)

0 commit comments

Comments
 (0)