Sha256: 28237e35597df978a76de0aa17f39e2b596ef412767e986f5fa611400020f1ac

Contents?: true

Size: 875 Bytes

Versions: 11

Compression:

Stored size: 875 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', '..', 'test_helper')

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

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

    should "set the environment" do
      base = Vagrant::Provisioners::Base.new(@env)
      assert_equal @env, base.env
    end

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

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

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
vagrantup-0.3.4 test/vagrant/provisioners/base_test.rb
vagrantup-0.3.3 test/vagrant/provisioners/base_test.rb
vagrantup-0.3.2 test/vagrant/provisioners/base_test.rb
vagrantup-0.3.1 test/vagrant/provisioners/base_test.rb
vagrantup-0.3.0 test/vagrant/provisioners/base_test.rb
vagrant-0.3.4 test/vagrant/provisioners/base_test.rb
vagrant-0.3.3 test/vagrant/provisioners/base_test.rb
vagrant-0.3.2 test/vagrant/provisioners/base_test.rb
vagrant-0.3.1 test/vagrant/provisioners/base_test.rb
vagrant-0.3.0 test/vagrant/provisioners/base_test.rb
bmabey-vagrant-0.2.0 test/vagrant/provisioners/base_test.rb