Sha256: beda4dd776904f01d6b82fff9aecaaaa79f5778b9cb555a3dbc791cfba214faf
Contents?: true
Size: 661 Bytes
Versions: 101
Compression:
Stored size: 661 Bytes
Contents
require "test_helper" class PackageBoxActionTest < Test::Unit::TestCase setup do @klass = Vagrant::Action::Box::Package @app, @env = action_env @env["box"] = Vagrant::Box.new(vagrant_env, "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["box"].directory true end @instance.call(@env) end end
Version data entries
101 entries across 101 versions & 9 rubygems