adding before hook

This commit is contained in:
Matthias Döring 2011-06-01 01:36:32 +02:00 committed by Thomas Reynolds
parent 993be281c7
commit 757ff53062

View file

@ -1,3 +1,9 @@
ENV["MM_DIR"] = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", "test-app")
require File.join(File.dirname(File.dirname(File.dirname(__FILE__))), 'lib', 'middleman')
require "rack/test"
# absolute views path
# otherwise resolve_template (padrino-core) can't find templates
Before do
Middleman::Server.views = File.join(Middleman::Server.root, "source")
end