提交 5053f2ca 编写于 作者: G Greg Williams

Fixed issue with requiring the new type_sanitizer module in different ways

上级 89b003ed
...@@ -7,9 +7,6 @@ ...@@ -7,9 +7,6 @@
$QUICK_RUBY_VERSION = RUBY_VERSION.split('.').inject(0){|vv,v| vv * 100 + v.to_i } $QUICK_RUBY_VERSION = RUBY_VERSION.split('.').inject(0){|vv,v| vv * 100 + v.to_i }
File.expand_path(File.join(File.dirname(__FILE__),'colour_prompt')) File.expand_path(File.join(File.dirname(__FILE__),'colour_prompt'))
HERE = File.expand_path(File.dirname(__FILE__))
require "#{HERE}/type_sanitizer"
class UnityTestRunnerGenerator class UnityTestRunnerGenerator
def initialize(options = nil) def initialize(options = nil)
...@@ -20,6 +17,7 @@ class UnityTestRunnerGenerator ...@@ -20,6 +17,7 @@ class UnityTestRunnerGenerator
when Hash then @options.merge!(options) when Hash then @options.merge!(options)
else raise "If you specify arguments, it should be a filename or a hash of options" else raise "If you specify arguments, it should be a filename or a hash of options"
end end
require "#{File.expand_path(File.dirname(__FILE__))}/type_sanitizer"
end end
def self.default_options def self.default_options
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册