Fix downloader tests

This commit is contained in:
Mitchell Hashimoto 2013-04-03 12:04:58 -07:00
parent 0f0c0b0396
commit 932f15665b
1 changed files with 2 additions and 2 deletions

View File

@ -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).