Skip to content

Commit

Permalink
Upgrade webmock dependency and address lints
Browse files Browse the repository at this point in the history
  • Loading branch information
petergoldstein committed Aug 28, 2023
1 parent 687126e commit 526bebc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ group :development, :test do
gem "rubocop-rspec"
gem "simplecov", require: false
gem "vcr", "~> 6.2.0"
gem "webmock", "~> 3.18.1"
gem "webmock", "~> 3.18"
end
3 changes: 1 addition & 2 deletions spec/asimov/api_v1/api_error_translator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
RSpec.describe Asimov::ApiV1::ApiErrorTranslator do
let(:resp) do
r = instance_double(HTTParty::Response)
allow(r).to receive(:code).and_return(code)
allow(r).to receive(:parsed_response).and_return(parsed_response)
allow(r).to receive_messages(code: code, parsed_response: parsed_response)
r
end

Expand Down
3 changes: 1 addition & 2 deletions spec/shared_examples/api_v1/httparty_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
let(:parsed_body) { { SecureRandom.hex(4) => SecureRandom.hex(4) } }
let(:ret_val) do
resp = instance_double(HTTParty::Response)
allow(resp).to receive(:code).and_return(200)
allow(resp).to receive(:parsed_response).and_return(parsed_body)
allow(resp).to receive_messages(code: 200, parsed_response: parsed_body)
resp
end

Expand Down

0 comments on commit 526bebc

Please sign in to comment.