diff --git a/test/unit/vagrant/util/downloader_test.rb b/test/unit/vagrant/util/downloader_test.rb index b15dfdf35..5146497a4 100644 --- a/test/unit/vagrant/util/downloader_test.rb +++ b/test/unit/vagrant/util/downloader_test.rb @@ -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).