Sha256: 9f276c2936f46bd992ddb3df6f821c1024846d51a80e9c9de74db6bb94d6a278
Contents?: true
Size: 1009 Bytes
Versions: 34
Compression:
Stored size: 1009 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") describe Braintree::ApplePayCard do describe "bin" do it "returns Apple pay card bin" do Braintree::ApplePayCard._new(:gateway, bin: '411111').bin.should == '411111' end end describe "default?" do it "is true if the Apple pay card is the default payment method for the customer" do Braintree::ApplePayCard._new(:gateway, :default => true).default?.should == true end it "is false if the Apple pay card is not the default payment methodfor the customer" do Braintree::ApplePayCard._new(:gateway, :default => false).default?.should == false end end describe "expired?" do it "is true if the Apple pay card is expired" do Braintree::ApplePayCard._new(:gateway, :expired => true).expired?.should == true end it "is false if the Apple pay card is not expired" do Braintree::ApplePayCard._new(:gateway, :expired => false).expired?.should == false end end end
Version data entries
34 entries across 34 versions & 1 rubygems