Sha256: 73f7c563f2cfaff6acffef06510fc57a61ed51203039e0411ac34e1ab3737349
Contents?: true
Size: 707 Bytes
Versions: 2
Compression:
Stored size: 707 Bytes
Contents
module Workarea decorate CheckoutTest, with: :kount do def test_handle_kount_review_fails_if_inventory_fails checkout = Checkout.new(@order) @order.update!(kount_decision: :review) checkout.expects(:complete?).returns(true) checkout.expects(:shippable?).returns(true) checkout.expects(:payable?).returns(true) checkout.inventory.expects(:captured?).returns(false) refute(checkout.handle_kount_review) end def test_handle_kount_review_tokenizes_the_card checkout = create_purchasable_checkout(order: { kount_decision: :review }) assert(checkout.handle_kount_review) assert(checkout.payment.credit_card.present?) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-kount-3.3.1 | test/models/workarea/checkout_test.decorator |
workarea-kount-3.3.0 | test/models/workarea/checkout_test.decorator |