lib/vagrant/test_helpers.rb
# Returns a blank app (callable) and action environment with the
# given vagrant environment. This allows for testing of middlewares.
Returns a blank app (callable) and action environment with the
given vagrant environment. This allows for testing of middlewares.
Returns a blank app ( callable ) and action environment with the given vagrant environment . This allows for testing of middlewares .
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
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
Returns a blank app (callable) and action environment with the
given vagrant environment.
Returns a blank app ( callable ) and action environment with the given vagrant environment .
v_env
<not_specific>