From 2c5dc929ed807147762be45884891b94cdc2731a Mon Sep 17 00:00:00 2001 From: Clay Allsopp Date: Tue, 3 Sep 2013 10:32:05 -0700 Subject: [PATCH] Add more possible ENV variables for tests adds some parity to Rails + RSpec options --- lib/motion/project/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/motion/project/config.rb b/lib/motion/project/config.rb index 51e0f63b..48e43420 100644 --- a/lib/motion/project/config.rb +++ b/lib/motion/project/config.rb @@ -266,7 +266,7 @@ def spec_files helpers = Dir.glob(File.join(specs_dir, 'helpers', '*.rb')) # Project specs. specs = Dir.glob(File.join(specs_dir, '**', '*.rb')) - helpers - if files_filter = ENV['files'] + if files_filter = (ENV['files'] || ENV['TEST'] || ENV['SPEC']) # Filter specs we want to run. A filter can be either the basename of a spec file or its path. files_filter = files_filter.split(',') files_filter.map! { |x| File.exist?(x) ? File.expand_path(x) : x }