spec/integration/braintree/customer_spec.rb in braintree-2.64.0 vs spec/integration/braintree/customer_spec.rb in braintree-2.65.0
- old
+ new
@@ -926,19 +926,19 @@
end
it "updates the default payment method" do
customer = Braintree::Customer.create!(
:first_name => "Joe",
- :last_name => "Brown",
+ :last_name => "Brown"
)
token1 = random_payment_method_token
payment_method1 = Braintree::PaymentMethod.create(
:customer_id => customer.id,
:payment_method_nonce => Braintree::Test::Nonce::TransactableVisa,
- :token => token1,
+ :token => token1
)
payment_method1 = Braintree::PaymentMethod.find(token1)
payment_method1.should be_default
@@ -959,18 +959,18 @@
end
it "updates the default payment method in the options" do
customer = Braintree::Customer.create!(
:first_name => "Joe",
- :last_name => "Brown",
+ :last_name => "Brown"
)
token1 = random_payment_method_token
payment_method1 = Braintree::PaymentMethod.create(
:customer_id => customer.id,
:payment_method_nonce => Braintree::Test::Nonce::TransactableVisa,
- :token => token1,
+ :token => token1
)
payment_method1 = Braintree::PaymentMethod.find(token1)
payment_method1.should be_default