2010-09-06 19:59:51 +02:00
|
|
|
ENV["MM_DIR"] = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", "test-app")
|
2009-11-23 00:37:11 +01:00
|
|
|
require File.join(File.dirname(File.dirname(File.dirname(__FILE__))), 'lib', 'middleman')
|
2011-06-01 01:36:32 +02:00
|
|
|
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
|