vagrant/test/support/objects.rb

14 lines
354 B
Ruby
Raw Normal View History

2010-09-07 17:52:58 +00:00
module VagrantTestHelpers
module Objects
# Returns a blank app (callable) and action environment with the
# given vagrant environment.
def action_env(v_env = nil)
v_env ||= vagrant_env
app = lambda { |env| }
env = Vagrant::Action::Environment.new(v_env)
env["vagrant.test"] = true
[app, env]
end
end
end