2012-05-25 21:19:11 -04:00
|
|
|
ENV["TEST"] = "true"
|
2012-05-24 17:29:29 -04:00
|
|
|
ENV["AUTOLOAD_SPROCKETS"] = "false"
|
2012-05-25 21:19:11 -04:00
|
|
|
|
2013-05-29 10:35:00 -04:00
|
|
|
if ENV["COVERAGE"] && (RUBY_VERSION =~ /1\.9/ || RUBY_VERSION =~ /2\.0/)
|
2013-05-29 09:59:15 -04:00
|
|
|
require 'simplecov'
|
|
|
|
SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/../..'))
|
|
|
|
SimpleCov.start do
|
|
|
|
add_filter '/features/'
|
|
|
|
add_filter '/spec/'
|
|
|
|
add_filter '/vendor'
|
|
|
|
add_filter '/step_definitions/'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-12-29 18:09:51 -05:00
|
|
|
PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__)))
|
|
|
|
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core')
|
2012-08-13 18:39:06 -04:00
|
|
|
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core', 'step_definitions')
|