From ba2131cbbe70da4cfe2e8d6fff3103e1898fe429 Mon Sep 17 00:00:00 2001 From: jdenquin Date: Tue, 15 Oct 2024 15:22:39 +0200 Subject: [PATCH] makes rubocop happier --- spec/factories/payments.rb | 2 +- spec/services/invoices/payments/stripe_service_spec.rb | 8 ++++---- .../webhooks/payments/requires_action_service_spec.rb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/factories/payments.rb b/spec/factories/payments.rb index e451b425199..0c382fa3574 100644 --- a/spec/factories/payments.rb +++ b/spec/factories/payments.rb @@ -15,7 +15,7 @@ status { 'requires_action' } provider_payment_data do { - redirect_to_url: { url: 'https://foo.bar' } + redirect_to_url: {url: 'https://foo.bar'} } end end diff --git a/spec/services/invoices/payments/stripe_service_spec.rb b/spec/services/invoices/payments/stripe_service_spec.rb index 22e21ad90bd..8418acf93cf 100644 --- a/spec/services/invoices/payments/stripe_service_spec.rb +++ b/spec/services/invoices/payments/stripe_service_spec.rb @@ -326,7 +326,7 @@ amount: invoice.total_amount_cents, currency: invoice.currency, next_action: { - redirect_to_url: { url: 'https://foo.bar' } + redirect_to_url: {url: 'https://foo.bar'} } ) end @@ -358,7 +358,7 @@ end end - context '#payment_intent_payload' do + context 'with #payment_intent_payload' do let(:payment_intent_payload) { stripe_service.__send__(:payment_intent_payload) } let(:payload) do { @@ -398,7 +398,7 @@ end end - context '#description' do + context 'with #description' do let(:description_call) { stripe_service.__send__(:description) } let(:description) { "#{organization.name} - Invoice #{invoice.number}" } @@ -443,7 +443,7 @@ end end - context '#payment_url_payload' do + context 'with #payment_url_payload' do let(:payment_url_payload) { stripe_service.__send__(:payment_url_payload) } let(:payload) do { diff --git a/spec/services/webhooks/payments/requires_action_service_spec.rb b/spec/services/webhooks/payments/requires_action_service_spec.rb index fb4d2837fa9..af6160edb7a 100644 --- a/spec/services/webhooks/payments/requires_action_service_spec.rb +++ b/spec/services/webhooks/payments/requires_action_service_spec.rb @@ -6,7 +6,7 @@ subject(:webhook_service) { described_class.new(object: payment, options: webhook_options) } let(:payment) { create(:payment, :requires_action) } - let(:webhook_options) { { provider_customer_id: 'customer_id' } } + let(:webhook_options) { {provider_customer_id: 'customer_id'} } it_behaves_like 'creates webhook', 'payment.requires_action', 'payment' end