[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 Eloy Durán
parent 44f92b290a
commit db4b3b6020
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@@ -1,5 +1,7 @@
= RubyMotion 2.30 =
* Fixed a bug where spec helpers nested in sub-directories were being
considered spec files instead of helpers. Patch by Ignacio Piantanida.
* Fixed a bug which it would trigger an assertion failed when use #layout in
iOS 8 and MIDIPacketList.
* Fixed a bug where it would trigger a crash when it will call a objc method

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']