Sha256: 3e4ad4acc8191595c311f58c456815645f2a21fa8ead6f4c94ab9bf7dfa9c1c2
Contents?: true
Size: 519 Bytes
Versions: 101
Compression:
Stored size: 519 Bytes
Contents
require "test_helper" class SetEnvActionTest < Test::Unit::TestCase setup do @klass = Vagrant::Action::Env::Set @app, @env = action_env @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
101 entries across 101 versions & 9 rubygems