mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-05-21 17:36:21 +08:00
changed grab_config to class method
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@31 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
class UnityTestRunnerGenerator
|
class UnityTestRunnerGenerator
|
||||||
|
|
||||||
def grab_config(config_file)
|
def self.grab_config(config_file)
|
||||||
includes = []
|
includes = []
|
||||||
options = {}
|
options = {}
|
||||||
unless (config_file.nil? or config_file.empty?)
|
unless (config_file.nil? or config_file.empty?)
|
||||||
@ -203,7 +203,7 @@ if ($0 == __FILE__)
|
|||||||
options[$1.to_sym] = 1
|
options[$1.to_sym] = 1
|
||||||
true
|
true
|
||||||
elsif (arg =~ /(\w+\.yml)/)
|
elsif (arg =~ /(\w+\.yml)/)
|
||||||
includes, options = grab_config($1)
|
includes, options = UnityTestRunnerGenerator::grab_config($1)
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
|
Reference in New Issue
Block a user