Sha256: 6d074af6b181c8bfa24c80c3f52f5b4c33fa46e18751617d5d5fea388c341c5d

Contents?: true

Size: 852 Bytes

Versions: 29

Compression:

Stored size: 852 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")

describe Braintree::ApplePayCard do
  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

29 entries across 29 versions & 1 rubygems

Version Path
braintree-2.76.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.75.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.74.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.73.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.72.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.71.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.70.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.69.1 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.69.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.68.2 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.68.1 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.68.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.67.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.66.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.65.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.64.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.63.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.62.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.61.1 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.61.0 spec/unit/braintree/apple_pay_card_spec.rb