middleman/middleman-core/features/support/env.rb

18 lines
583 B
Ruby
Raw Normal View History

ENV["TEST"] = "true"
2012-05-24 23:29:29 +02:00
ENV["AUTOLOAD_SPROCKETS"] = "false"
2013-05-29 16:35:00 +02:00
if ENV["COVERAGE"] && (RUBY_VERSION =~ /1\.9/ || RUBY_VERSION =~ /2\.0/)
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
PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__)))
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core')
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core', 'step_definitions')