Sha256: 5e8243da9ff50690dbc9c115981cc3b4359cd8405c2b95d0bad8ba749d8f8706

Contents?: true

Size: 727 Bytes

Versions: 4

Compression:

Stored size: 727 Bytes

Contents

require "test_helper"

class BaseDownloaderTest < Test::Unit::TestCase
  should "include the util class so subclasses have access to it" do
    assert Vagrant::Downloaders::Base.include?(Vagrant::Util)
  end

  context "base instance" do
    setup do
      @env = mock_environment
      @base = Vagrant::Downloaders::Base.new(@env)
    end

    should "implement prepare which does nothing" do
      assert_nothing_raised do
        assert @base.respond_to?(:prepare)
        @base.prepare("source")
      end
    end

    should "implement download! which does nothing" do
      assert_nothing_raised do
        assert @base.respond_to?(:download!)
        @base.download!("source", "destination")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
vagrantup-0.5.4 test/vagrant/downloaders/base_test.rb
vagrantup-0.5.3 test/vagrant/downloaders/base_test.rb
vagrant-0.5.4 test/vagrant/downloaders/base_test.rb
vagrant-0.5.3 test/vagrant/downloaders/base_test.rb