Sha256: 77e60e7a775ca6c36ef1e3521196e8570cccd14f4dc8f9c0dbdf35885a4585db
Contents?: true
Size: 434 Bytes
Versions: 3
Compression:
Stored size: 434 Bytes
Contents
module Workarea decorate Payment::RefundTest, with: :cim do def test_valid_is_false_if_there_are_no_refundable_transactions payment.store_credit = nil profile.update_attributes!(store_credit: 0) payment.purchase! refund = Payment::Refund.new(payment: payment) refund.allocate_amounts!(total: 5.to_m) refute(refund.valid?) assert(refund.errors[:credit_card].present?) end end end
Version data entries
3 entries across 3 versions & 1 rubygems