Sha256: b0ea02f43d9c33e9c91510810a17385403a68bf68e44adb51dd8c543486c2f3a

Contents?: true

Size: 641 Bytes

Versions: 101

Compression:

Stored size: 641 Bytes

Contents

require "test_helper"

class PackageVMActionTest < Test::Unit::TestCase
  setup do
    @klass = Vagrant::Action::VM::Package
    @app, @env = action_env
    @env["export.temp_dir"] = "foo"

    @instance = @klass.new(@app, @env)
  end

  should "be a subclass of general packaging middleware" do
    assert @instance.is_a?(Vagrant::Action::General::Package)
  end

  should "set the package directory then call parent" do
    @instance.expects(:general_call).once.with() do |env|
      assert env["package.directory"]
      assert_equal env["package.directory"], env["export.temp_dir"]
      true
    end

    @instance.call(@env)
  end
end

Version data entries

101 entries across 101 versions & 9 rubygems

Version Path
bmhatfield-vagrant-1.0.10 test/unit_legacy/vagrant/action/vm/package_test.rb
bmhatfield-vagrant-1.0.9 test/unit_legacy/vagrant/action/vm/package_test.rb
bmhatfield-vagrant-1.0.8 test/unit_legacy/vagrant/action/vm/package_test.rb
bmhatfield-vagrant-1.0.7 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-1.0.7 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-1.0.6 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-1.0.5 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-1.0.4 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-1.0.3 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-1.0.2 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-1.0.1 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-1.0.0 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-0.9.99.2 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-0.9.99.1 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-0.9.7 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-0.9.6 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-0.9.5 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-0.9.4 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-0.9.3 test/unit_legacy/vagrant/action/vm/package_test.rb
vagrantup-0.9.2 test/unit_legacy/vagrant/action/vm/package_test.rb