diff options
author | James Wen <jrw2175@columbia.edu> | 2016-03-10 00:10:06 -0500 |
---|---|---|
committer | James Wen <jrw2175@columbia.edu> | 2016-03-10 00:10:06 -0500 |
commit | c276b2081ea11995ee19390bdcb7d9972a671d82 (patch) | |
tree | 970a4da80064a498f53e70bbf6e3a6e4db906164 | |
parent | 90bccfc0e43be51cdb79a4bf30c62a34dff0113b (diff) | |
download | bundler-c276b2081ea11995ee19390bdcb7d9972a671d82.tar.gz |
Fix the following warning in the test suite:
```
Bundler::Fetcher::Downloader
fetch
when the # requests counter is greater than the redirect limit
WARNING: An expectation of `:body` was set on `nil`. To allow
expectations on `nil` and suppress this message, set
`config.allow_expectations_on_nil` to `true`. To disallow
expectations on `nil`, set `config.allow_expectations_on_nil` to
`false`. Called from
/home/travis/build/bundler/bundler/spec/bundler/fetcher/downloader_spec.rb:19:in
`block (3 levels) in <top (required)>'.
```
-rw-r--r-- | spec/bundler/fetcher/downloader_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/fetcher/downloader_spec.rb b/spec/bundler/fetcher/downloader_spec.rb index ebfaf90534..bf6abd115a 100644 --- a/spec/bundler/fetcher/downloader_spec.rb +++ b/spec/bundler/fetcher/downloader_spec.rb @@ -12,7 +12,7 @@ describe Bundler::Fetcher::Downloader do describe "fetch" do let(:counter) { 0 } let(:httpv) { "1.1" } - let(:http_response) { nil } + let(:http_response) { double(:response) } before do allow(subject).to receive(:request).with(uri, options).and_return(http_response) |