1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/features/step_definitions/env.rb

9 lines
385 B
Ruby
Raw Normal View History

ENV["MM_DIR"] = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", "test-app")
2009-11-22 18:37:11 -05:00
require File.join(File.dirname(File.dirname(File.dirname(__FILE__))), 'lib', 'middleman')
2011-05-31 19:36:32 -04: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