Put test ENV in the right place so cucumber/rake both work

This commit is contained in:
Thomas Reynolds 2012-05-25 18:19:11 -07:00
parent b5b6349220
commit f8c64f25ec
3 changed files with 4 additions and 2 deletions

View file

@ -17,8 +17,6 @@ class Bundler::GemHelper
end end
Cucumber::Rake::Task.new(:test, 'Run features that should pass') do |t| Cucumber::Rake::Task.new(:test, 'Run features that should pass') do |t|
ENV["TEST"] = "true"
exempt_tags = "" exempt_tags = ""
exempt_tags << "--tags ~@nojava" if RUBY_PLATFORM == "java" exempt_tags << "--tags ~@nojava" if RUBY_PLATFORM == "java"

View file

@ -1,3 +1,5 @@
ENV["TEST"] = "true"
PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__))) 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')
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core', 'step_definitions') require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core', 'step_definitions')

View file

@ -1,3 +1,5 @@
ENV["TEST"] = "true"
PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__))) PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__)))
core_root = File.expand_path("../../../../middleman-core/lib/middleman-core", __FILE__) core_root = File.expand_path("../../../../middleman-core/lib/middleman-core", __FILE__)