Fix the tests

This commit is contained in:
Mitchell Hashimoto 2013-04-16 13:32:37 -07:00
parent dc31725049
commit 43c14dfb26
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", "--max-redirs", "10", "--output", destination, source]
curl_options = ["--fail", "--location", "--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", "--max-redirs", "10", "--output", destination, source]
curl_options = ["--fail", "--location", "--max-redirs", "10", "--output", destination, source]
Vagrant::Util::Subprocess.should_receive(:execute).
with("curl", *curl_options).