From 5053f2ca90a3264ecf047f113b51abbdf6182308 Mon Sep 17 00:00:00 2001 From: Greg Williams Date: Thu, 12 Mar 2015 12:25:43 -0400 Subject: [PATCH] Fixed issue with requiring the new type_sanitizer module in different ways --- auto/generate_test_runner.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/auto/generate_test_runner.rb b/auto/generate_test_runner.rb index 1378ed2..fe62edc 100644 --- a/auto/generate_test_runner.rb +++ b/auto/generate_test_runner.rb @@ -7,9 +7,6 @@ $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')) -HERE = File.expand_path(File.dirname(__FILE__)) -require "#{HERE}/type_sanitizer" - class UnityTestRunnerGenerator def initialize(options = nil) @@ -20,6 +17,7 @@ class UnityTestRunnerGenerator when Hash then @options.merge!(options) else raise "If you specify arguments, it should be a filename or a hash of options" end + require "#{File.expand_path(File.dirname(__FILE__))}/type_sanitizer" end def self.default_options