Skip to content

Commit

Permalink
makes rubocop happier
Browse files Browse the repository at this point in the history
  • Loading branch information
jdenquin committed Oct 15, 2024
1 parent 0805271 commit ba2131c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/factories/payments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions spec/services/invoices/payments/stripe_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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}" }

Expand Down Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ba2131c

Please sign in to comment.