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 }