From 757ff53062662e7c1759c17c9be60c61e7a10b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20D=C3=B6ring?= Date: Wed, 1 Jun 2011 01:36:32 +0200 Subject: [PATCH] adding before hook --- features/step_definitions/env.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/features/step_definitions/env.rb b/features/step_definitions/env.rb index e4c5bca9..d5ffc2ed 100644 --- a/features/step_definitions/env.rb +++ b/features/step_definitions/env.rb @@ -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" \ No newline at end of file +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 \ No newline at end of file