test/lib/workarea/klarna/gateway/order_test.rb in workarea-klarna-1.0.0.beta1 vs test/lib/workarea/klarna/gateway/order_test.rb in workarea-klarna-1.0.0.beta2
- old
+ new
@@ -88,22 +88,22 @@
line = result[:order_lines].first
assert_equal('Integration Product', line[:name])
assert_equal('physical', line[:type])
assert_equal('SKU', line[:reference])
assert_equal(2, line[:quantity])
- assert_equal(500, line[:unit_price])
- assert_equal(1000, line[:total_amount])
+ assert_equal(540, line[:unit_price])
+ assert_equal(1081, line[:total_amount])
assert_equal(81, line[:total_tax_amount])
assert_equal(800, line[:tax_rate])
assert_includes(line[:product_url], '/products/integration-product')
assert_equal('Home > Pants', line[:product_identifiers][:category_path])
line = result[:order_lines].second
assert_equal('Shipping', line[:name])
assert_equal('shipping_fee', line[:type])
assert_equal(1, line[:quantity])
- assert_equal(700, line[:unit_price])
- assert_equal(700, line[:total_amount])
+ assert_equal(763, line[:unit_price])
+ assert_equal(763, line[:total_amount])
assert_equal(63, line[:total_tax_amount])
assert_equal(900, line[:tax_rate])
line = result[:order_lines].third
assert_equal('Order Discounts', line[:name])