spec/integration/braintree/customer_spec.rb in braintree-4.18.0 vs spec/integration/braintree/customer_spec.rb in braintree-4.19.0

- old
+ new

@@ -922,15 +922,15 @@ :postal_code => "60622", :country_name => "United States of America" }, ).credit_card - subscription = Braintree::Subscription.create( + Braintree::Subscription.create( :payment_method_token => credit_card.token, :plan_id => "integration_trialless_plan", :price => "1.00", - ).subscription + ) found_customer = Braintree::Customer.find(customer.id, { :association_filter_id => "customernoassociations" }) expect(found_customer.credit_cards.length).to eq(0) @@ -956,15 +956,15 @@ :postal_code => "60622", :country_name => "United States of America" }, ).credit_card - subscription = Braintree::Subscription.create( + Braintree::Subscription.create( :payment_method_token => credit_card.token, :plan_id => "integration_trialless_plan", :price => "1.00", - ).subscription + ) found_customer = Braintree::Customer.find(customer.id, { :association_filter_id => "customertoplevelassociations" }) @@ -1231,22 +1231,22 @@ :last_name => "Brown", ) token1 = random_payment_method_token - payment_method1 = Braintree::PaymentMethod.create( + Braintree::PaymentMethod.create( :customer_id => customer.id, :payment_method_nonce => Braintree::Test::Nonce::TransactableVisa, :token => token1, ) payment_method1 = Braintree::PaymentMethod.find(token1) expect(payment_method1).to be_default token2 = random_payment_method_token - payment_method2 = Braintree::PaymentMethod.create( + Braintree::PaymentMethod.create( :customer_id => customer.id, :payment_method_nonce => Braintree::Test::Nonce::TransactableMasterCard, :token => token2, ) @@ -1264,21 +1264,21 @@ :last_name => "Brown", ) token1 = random_payment_method_token - payment_method1 = Braintree::PaymentMethod.create( + Braintree::PaymentMethod.create( :customer_id => customer.id, :payment_method_nonce => Braintree::Test::Nonce::TransactableVisa, :token => token1, ) payment_method1 = Braintree::PaymentMethod.find(token1) expect(payment_method1).to be_default token2 = random_payment_method_token - payment_method2 = Braintree::PaymentMethod.create( + Braintree::PaymentMethod.create( :customer_id => customer.id, :payment_method_nonce => Braintree::Test::Nonce::TransactableMasterCard, :token => token2, )