Skip to content

Commit

Permalink
adding before hook
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-hh authored and tdreyno committed Jun 1, 2011
1 parent 993be28 commit 757ff53
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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"
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

0 comments on commit 757ff53

Please sign in to comment.