Sha256: 2a1ad6fe43bf45e0dcdae2eb1096757efd8ef88f4e4449e761ed31438455ff59
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
require "test_helper" class SetEnvActionTest < Test::Unit::TestCase setup do @klass = Vagrant::Action::Env::Set @app, @env = mock_action_data @env.clear end should "merge in the given options" do @klass.new(@app, @env, :foo => :bar) assert_equal :bar, @env[:foo] end should "not merge in anything if not given" do @klass.new(@app, @env) assert @env.empty? end should "just continue the chain" do @app.expects(:call).with(@env) @klass.new(@app, @env).call(@env) end end
Version data entries
4 entries across 4 versions & 2 rubygems