[spec] Add spec helpers subdirs to #spec_files.

Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
This commit is contained in:
Ignacio Piantanida
2014-06-24 14:51:58 +02:00
committed by Watson
parent 4550206b47
commit e25af615d3

View File

@@ -251,7 +251,7 @@ module Motion; module Project
def spec_files
@spec_files ||= begin
# Project helpers.
helpers = Dir.glob(File.join(specs_dir, 'helpers', '*.rb'))
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']