mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-17 12:20:25 +08:00
[spec] Add spec helpers subdirs to #spec_files.
Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
This commit is contained in:
committed by
Eloy Durán
parent
44f92b290a
commit
db4b3b6020
2
NEWS
2
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
|
||||
|
||||
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user