From 277dc34fa17ac152464ab15d580185b02a0be1e8 Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Wed, 30 Oct 2019 12:45:19 -0400 Subject: [PATCH] Fix typo (unity_gelper -> unity_helper). --- lib/cmock_config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cmock_config.rb b/lib/cmock_config.rb index f6d7ee62..b21b61ed 100644 --- a/lib/cmock_config.rb +++ b/lib/cmock_config.rb @@ -64,7 +64,7 @@ def initialize(options=nil) end options[:unity_helper_path] ||= options[:unity_helper] options[:unity_helper_path] = [options[:unity_helper_path]] if options[:unity_helper_path].is_a? String - options[:includes_c_post_header] = ((options[:includes_c_post_header] || []) + (options[:unity_gelper_path] || [])).uniq + options[:includes_c_post_header] = ((options[:includes_c_post_header] || []) + (options[:unity_helper_path] || [])).uniq options[:plugins].compact! options[:plugins].map! {|p| p.to_sym} @options = options @@ -73,7 +73,7 @@ def initialize(options=nil) treat_as_map.merge!(@options[:treat_as]) @options[:treat_as] = treat_as_map - @options.each_key do |key| + @options.each_key do |key| unless methods.include?(key) eval("def #{key.to_s}() return @options[:#{key.to_s}] end") end