Sha256: 8513f77c441e0f2e9edd339b96e0a00ddd2efd44bcd0c39d058f6833f1b82d2e
Contents?: true
Size: 510 Bytes
Versions: 4
Compression:
Stored size: 510 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe CreditcardPayment do before(:each) { @creditcard_payment = CreditcardPayment.new} describe "creditcard=" do it "should correctly assign the type of credit card based on the number" do creditcard = mock_model(ActiveMerchant::Billing::CreditCard, :null_object => true, :number => "4111111111111111") @creditcard_payment.creditcard = creditcard @creditcard_payment.cc_type.should == "visa" end end end
Version data entries
4 entries across 4 versions & 1 rubygems