Test that the environment has string keys

This commit is contained in:
Seth Vargo 2015-01-05 10:57:06 -05:00
parent eb7eaf74ff
commit 2377247ba0
1 changed files with 2 additions and 2 deletions

View File

@ -252,10 +252,10 @@ describe Vagrant::Machine do
expect(machine).to eql(instance)
end
it "should pass any extra options to the environment" do
it "should pass any extra options to the environment as strings" do
action_name = :up
foo = nil
callable = lambda { |env| foo = env[:foo] }
callable = lambda { |env| foo = env["foo"] }
allow(provider).to receive(:action).with(action_name).and_return(callable)
instance.action(:up, foo: :bar)