Skip to content

Commit 66ebb99

Browse files
committed
fix: lint
1 parent e810527 commit 66ebb99

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

lib/easypost/services/beta_referral_customer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def refund_by_payment_log(payment_log_id)
4343
end
4444

4545
# Creates a client secret to use with Stripe when adding a credit card.
46-
def create_credit_card_client_secret()
46+
def create_credit_card_client_secret
4747
response = @client.make_request(:post, 'setup_intents', nil, 'beta')
4848

4949
EasyPost::InternalUtilities::Json.convert_json_to_object(response)

spec/beta_referral_customer_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242

4343
describe '.create_credit_card_client_secret' do
4444
it 'returns a client secret for credit cards' do
45-
response = client.beta_referral_customer.create_credit_card_client_secret()
45+
response = client.beta_referral_customer.create_credit_card_client_secret
4646

4747
expect(response.client_secret).to match('seti_')
4848
end
4949
end
5050

5151
describe '.create_bank_account_client_secret' do
5252
it 'returns a client secret for bank accounts' do
53-
response = client.beta_referral_customer.create_bank_account_client_secret()
53+
response = client.beta_referral_customer.create_bank_account_client_secret
5454

5555
expect(response.client_secret).to match('fcsess_client_secret_')
5656
end

spec/referral_customer_spec.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,12 @@
8181
describe '.add_credit_card' do
8282
it 'adds a credit card to a referral customer account' do
8383
# We override the VCR config here since it cannot match the URL due to data scrubbing
84+
# rubocop:disable Layout/LineLength
8485
VCR.use_cassette(
8586
'referral_customer/EasyPost_Services_ReferralCustomer_add_credit_card_adds_a_credit_card_to_a_referral_customer_account',
8687
match_requests_on: [:method, :uri],
8788
) do
89+
# rubocop:enable Layout/LineLength
8890
credit_card = client.referral_customer.add_credit_card(
8991
REFERRAL_CUSTOMER_PROD_API_KEY,
9092
Fixture.credit_card_details['number'],
@@ -123,7 +125,9 @@
123125
'pm_0Pn6bQDqT4huGUvd0CjpRerH',
124126
'primary',
125127
)
126-
}.to raise_error(EasyPost::Errors::ApiError).with_message('Stripe::PaymentMethod does not exist for the specified reference_id')
128+
}.to raise_error(EasyPost::Errors::ApiError).with_message(
129+
'Stripe::PaymentMethod does not exist for the specified reference_id',
130+
)
127131
end
128132
end
129133

@@ -141,7 +145,9 @@
141145
},
142146
'primary',
143147
)
144-
}.to raise_error(EasyPost::Errors::ApiError).with_message('account_holder_name must be present when creating a Financial Connections payment method')
148+
}.to raise_error(EasyPost::Errors::ApiError).with_message(
149+
'account_holder_name must be present when creating a Financial Connections payment method',
150+
)
145151
end
146152
end
147153
end

0 commit comments

Comments
 (0)