Sha256: f54dfd4d2e94c432464f3430e26639b122ad18e90cfb39e9ae1760f33b4a040b

Contents?: true

Size: 456 Bytes

Versions: 5

Compression:

Stored size: 456 Bytes

Contents

require 'test_helper'
module Workarea
  class Payment
    class ForterCreditCardTest < TestCase
      def credit_card
        @credit_card ||= Workarea::Payment::Tender::CreditCard.new
      end

      def test_valid?
        credit_card.number = 4111111111111111
        credit_card.valid?
        assert(credit_card.display_number.present?)
        assert(credit_card.issuer.present?)
        assert(credit_card.bin.present?)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-forter-1.3.2 test/models/workarea/payment/forter_credit_card_test.rb
workarea-forter-1.3.1 test/models/workarea/payment/forter_credit_card_test.rb
workarea-forter-1.3.0 test/models/workarea/payment/forter_credit_card_test.rb
workarea-forter-1.2.4 test/models/workarea/payment/forter_credit_card_test.rb
workarea-forter-1.2.3 test/models/workarea/payment/forter_credit_card_test.rb