diff --git a/spec/models/solidus_paypal_braintree/gateway_spec.rb b/spec/models/solidus_paypal_braintree/gateway_spec.rb index 776953a5..3808b8a6 100644 --- a/spec/models/solidus_paypal_braintree/gateway_spec.rb +++ b/spec/models/solidus_paypal_braintree/gateway_spec.rb @@ -12,7 +12,7 @@ let(:user) { create :user } let(:source) do - SolidusPaypalBraintree::Source.new( + SolidusPaypalBraintree::Source.create!( nonce: 'fake-valid-nonce', user: user, payment_type: payment_type,