Put test ENV in the right place so cucumber/rake both work
This commit is contained in:
parent
b5b6349220
commit
f8c64f25ec
|
@ -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"
|
||||
|
||||
|
|
|
@ -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')
|
|
@ -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__)
|
||||
|
|
Loading…
Reference in a new issue