Test that the environment has string keys
This commit is contained in:
parent
eb7eaf74ff
commit
2377247ba0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue