Autoload errors. If nothing bad happens, all those error classes don't use any memory :)

This commit is contained in:
Mitchell Hashimoto 2010-09-01 07:15:37 -07:00
parent 39663f6f11
commit a7197b3566
2 changed files with 2 additions and 8 deletions

View File

@ -1,14 +1,14 @@
require 'json'
require 'i18n'
require 'virtualbox'
require 'vagrant/errors'
require 'vagrant/util/glob_loader'
module Vagrant
# TODO: Move more classes over to the autoload model. We'll
# start small, but slowly move everything over.
autoload :CLI, 'vagrant/cli'
autoload :CLI, 'vagrant/cli'
autoload :Errors, 'vagrant/errors'
module Command
autoload :Base, 'vagrant/command/base'

View File

@ -67,12 +67,6 @@ class ActionWardenTest < Test::Unit::TestCase
@instance.expects(:begin_rescue)
assert_raises(RuntimeError) { @instance.call(new_env) }
end
def new_env_with_error
env = new_env
env.error!(:foo)
env
end
end
context "recover" do