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

i18n_v4
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
Cucumber::Rake::Task.new(:test, 'Run features that should pass') do |t|
ENV["TEST"] = "true"
exempt_tags = ""
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__)))
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core')
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__)))
core_root = File.expand_path("../../../../middleman-core/lib/middleman-core", __FILE__)