Skip to content

Commit 7caa17a

Browse files
committed
Work around webmock 3.24.0 / Addressable::URI regression issue.
* bblimke/webmock#1082
1 parent 82bc391 commit 7caa17a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ group :development do
1818
gem 'rake'
1919
gem 'rubygems-tasks', '~> 0.1'
2020
gem 'rspec', '~> 3.0'
21-
gem 'webmock', '~> 3.0', '!= 3.24.0'
21+
gem 'webmock', '~> 3.0'
2222
gem 'simplecov', '~> 0.18'
2323

2424
gem 'kramdown', '~> 2.0'

spec/network/http_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,11 +1373,12 @@
13731373
end
13741374

13751375
it "must send a request with the given method and path to the host and return an Net::HTTPResponse object" do
1376-
stub_request(method,uri)
1376+
# NOTE: webmock 3.24.0 stopped accepting Addressable::URI values
1377+
stub_request(method,uri.to_s)
13771378

13781379
expect(subject.request(method,uri)).to be_kind_of(Net::HTTPResponse)
13791380

1380-
expect(WebMock).to have_requested(method,uri)
1381+
expect(WebMock).to have_requested(method,uri.to_s)
13811382
end
13821383
end
13831384

0 commit comments

Comments
 (0)