Sha256: d19ea00b2b06de81af386afe2359ac02cd34b706cc4296d81d72e68f6544189a
Contents?: true
Size: 526 Bytes
Versions: 19
Compression:
Stored size: 526 Bytes
Contents
require File.expand_path("../../../../base", __FILE__) describe Vagrant::Action::Builtin::EnvSet do let(:app) { lambda { |env| } } let(:env) { {} } it "should set the new environment" do described_class.new(app, env, :foo => :bar).call(env) env[:foo].should == :bar end it "should call the next middleware" do callable = lambda { |env| env[:called] = env[:foo] } env[:called].should be_nil described_class.new(callable, env, :foo => :yep).call(env) env[:called].should == :yep end end
Version data entries
19 entries across 19 versions & 6 rubygems