mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-05-21 01:16:39 +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
|
||||
|
||||
def grab_config(config_file)
|
||||
def self.grab_config(config_file)
|
||||
includes = []
|
||||
options = {}
|
||||
unless (config_file.nil? or config_file.empty?)
|
||||
@ -203,7 +203,7 @@ if ($0 == __FILE__)
|
||||
options[$1.to_sym] = 1
|
||||
true
|
||||
elsif (arg =~ /(\w+\.yml)/)
|
||||
includes, options = grab_config($1)
|
||||
includes, options = UnityTestRunnerGenerator::grab_config($1)
|
||||
true
|
||||
else
|
||||
false
|
||||
|
Reference in New Issue
Block a user