Sha256: 6f4c6ec4a4f978b6882bb0b245f36967381a763ee2b4f8acb8c6cec8fc2b0027

Contents?: true

Size: 706 Bytes

Versions: 7

Compression:

Stored size: 706 Bytes

Contents

require File.expand_path("../../../base", __FILE__)

describe Vagrant::Downloaders::HTTP do
  let(:ui) { double("ui") }
  let(:instance) { described_class.new(ui) }

  describe "matching" do
    it "should match URLs" do
      described_class.match?("http://google.com/foo.box").should be
      described_class.match?("https://google.com/foo.box").should be
      described_class.match?("http://foo:bar@google.com/foo.box").should be
      described_class.match?("http://google.com:8500/foo.box").should be
    end

    it "should not match file:// URIs" do
      described_class.match?("file://#{__FILE__}").should_not be
    end
  end

  describe "downloading" do
    # Integration tests only.
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
vagrantup-1.1.3 test/unit/vagrant/downloaders/http_test.rb
vagrantup-1.1.2 test/unit/vagrant/downloaders/http_test.rb
vagrantup-1.1.1 test/unit/vagrant/downloaders/http_test.rb
vagrantup-1.1.0 test/unit/vagrant/downloaders/http_test.rb
vagrantup-1.1.4 test/unit/vagrant/downloaders/http_test.rb
vagrant-actionio-0.0.9 vendor/bundle/bundler/gems/vagrant-c74251a1d9c0/test/unit/vagrant/downloaders/http_test.rb
vagrant-lxc-0.0.1 vendor/vagrant/test/unit/vagrant/downloaders/http_test.rb