Sha256: 15a881974b1efe0cb984376b8f6137bdf0c69633e1d8cdb3caa6a4aabe9f14fc
Contents?: true
Size: 926 Bytes
Versions: 21
Compression:
Stored size: 926 Bytes
Contents
require "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 = Vagrant::Action::Environment.new(vagrant_env) @base = Vagrant::Provisioners::Base.new(@env) end should "set the environment" do assert_equal @env.env, @base.env end should "return the VM which the provisioner is acting on" do assert_equal @env.env.vm, @base.vm 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
21 entries across 21 versions & 2 rubygems