Sha256: 6b6ba8abf3b2a76b08d8cb146d5504aa112b8f5bb9c7d80ed595ed42129b7ed5
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
module Workarea decorate CheckoutTest, with: :forter do def test_place_order_fails_for_fraud @order.email = 'decline@workarea.com' checkout = Checkout.new(@order) checkout.expects(:complete?).returns(true) checkout.expects(:shippable?).returns(true) checkout.expects(:payable?).returns(true) checkout.inventory.expects(:purchase).once refute(checkout.place_order) refute(@order.reload.placed?) end end end
Version data entries
3 entries across 3 versions & 1 rubygems