reorg some of the more stuff

This commit is contained in:
Thomas Reynolds 2013-05-19 13:23:49 -07:00
parent 4d0ffe11c0
commit b19e8bc185
7 changed files with 104 additions and 107 deletions

View file

@ -158,6 +158,15 @@ module Middleman
run_hook :initialized
# This is for making the tests work - since the tests
# don't completely reload middleman, I18n.load_path can get
# polluted with paths from other test app directories that don't
# exist anymore.
if ENV["TEST"]
::I18n.load_path.delete_if {|path| path =~ %r{tmp/aruba}}
::I18n.reload!
end
run_hook :after_configuration
logger.debug "Loaded extensions:"