Sha256: 5cce4459950830afb0d96e02e38dbc384252f762f227739fc4c212fc723cd635

Contents?: true

Size: 516 Bytes

Versions: 8

Compression:

Stored size: 516 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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
braintree-2.48.1 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.48.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.47.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.46.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.45.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.44.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.43.0 spec/unit/braintree/apple_pay_card_spec.rb
braintree-2.42.0 spec/unit/braintree/apple_pay_card_spec.rb