Fix downloader tests
This commit is contained in:
parent
0f0c0b0396
commit
932f15665b
|
@ -25,7 +25,7 @@ describe Vagrant::Util::Downloader do
|
|||
let(:exit_code) { 0 }
|
||||
|
||||
it "downloads the file and returns true" do
|
||||
curl_options = ["--fail", "--output", destination, source]
|
||||
curl_options = ["--fail", "--max-redirs", "10", "--output", destination, source]
|
||||
|
||||
Vagrant::Util::Subprocess.should_receive(:execute).
|
||||
with("curl", *curl_options).
|
||||
|
@ -39,7 +39,7 @@ describe Vagrant::Util::Downloader do
|
|||
let(:exit_code) { 1 }
|
||||
|
||||
it "raises an exception" do
|
||||
curl_options = ["--fail", "--output", destination, source]
|
||||
curl_options = ["--fail", "--max-redirs", "10", "--output", destination, source]
|
||||
|
||||
Vagrant::Util::Subprocess.should_receive(:execute).
|
||||
with("curl", *curl_options).
|
||||
|
|
Loading…
Reference in New Issue