From 1ca6029edcd6ca7a58e5a2178bbfbaa549b403f7 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Tue, 15 Feb 2022 12:52:54 +0100 Subject: [PATCH] Update stripe/stripe-ruby-mock --- Gemfile | 2 +- Gemfile.next.lock | 6 +++--- spec/models/payment_spec.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 096efc3c..216b3eb0 100644 --- a/Gemfile +++ b/Gemfile @@ -264,7 +264,7 @@ group :test do # for mocking external requests gem 'webmock' # for mocking Stripe responses in tests - gem 'stripe-ruby-mock' + gem 'stripe-ruby-mock', '~> 3.1.0.rc3' # For validating JSON schemas gem 'json-schema' # For using 'assigns' in tests diff --git a/Gemfile.next.lock b/Gemfile.next.lock index 51bd7506..47ff59cc 100644 --- a/Gemfile.next.lock +++ b/Gemfile.next.lock @@ -597,8 +597,8 @@ GEM sprockets (>= 3.0.0) sqlite3 (1.4.2) ssrf_filter (1.0.7) - stripe (5.38.0) - stripe-ruby-mock (3.0.1) + stripe (5.43.0) + stripe-ruby-mock (3.1.0.rc3) dante (>= 0.2.0) multi_json (~> 1.0) stripe (> 5, < 6) @@ -755,7 +755,7 @@ DEPENDENCIES sprockets-rails sqlite3 stripe - stripe-ruby-mock + stripe-ruby-mock (~> 3.1.0.rc3) timecop transitions turbolinks diff --git a/spec/models/payment_spec.rb b/spec/models/payment_spec.rb index 702ad725..f637e211 100644 --- a/spec/models/payment_spec.rb +++ b/spec/models/payment_spec.rb @@ -113,7 +113,7 @@ describe Payment do context 'when the request to Stripe is invalid' do it 'raises exception' do - StripeMock.prepare_error(Stripe::InvalidRequestError.new('Your request is invalid.', code: 402)) + StripeMock.prepare_error(Stripe::InvalidRequestError.new('Your request is invalid.', {}, code: 402)) expect{ payment.purchase }.not_to raise_error end end