Sha256: d1b5e85490911ec9c34df0517ba41f5646d2ead86b77e37cee769ca54145c718
Contents?: true
Size: 534 Bytes
Versions: 39
Compression:
Stored size: 534 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) expect(env[:foo]).to eq(:bar) end it "should call the next middleware" do callable = lambda { |env| env[:called] = env[:foo] } expect(env[:called]).to be_nil described_class.new(callable, env, foo: :yep).call(env) expect(env[:called]).to eq(:yep) end end
Version data entries
39 entries across 32 versions & 8 rubygems