diff --git a/NEWS b/NEWS index 27984103..45a13040 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/lib/motion/project/config.rb b/lib/motion/project/config.rb index 36d0a9bf..1db073b7 100644 --- a/lib/motion/project/config.rb +++ b/lib/motion/project/config.rb @@ -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']