Sha256: 226f9c486c78424f235f5af4dc6a5b564305cb23cefa6cb1021be95f2e55f6c3
Contents?: true
Size: 683 Bytes
Versions: 2
Compression:
Stored size: 683 Bytes
Contents
require File.dirname(__FILE__) + "/../../spec_helper" describe Braintree::Transaction::CreditCardDetails do describe "expiration_date" do it "concats expiration_month and expiration_year" do details = Braintree::Transaction::CreditCardDetails.new( :expiration_month => "08", :expiration_year => "2009" ) details.expiration_date.should == "08/2009" end end describe "masked_number" do it "concatenates the bin, some *'s, and the last_4" do details = Braintree::Transaction::CreditCardDetails.new( :bin => "510510", :last_4 => "5100" ) details.masked_number.should == "510510******5100" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
braintree-1.0.1 | spec/unit/braintree/transaction/credit_card_details_spec.rb |
braintree-1.0.0 | spec/unit/braintree/transaction/credit_card_details_spec.rb |