automatically pull in unity helper into tests when specified in both example and cmock's includes.

This commit is contained in:
Mark VanderVoord
2019-07-09 10:50:29 -04:00
parent 0b6118e410
commit 7761b3fb3f
6 changed files with 6 additions and 5 deletions
+1
View File
@@ -64,6 +64,7 @@ class CMockConfig
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[:plugins].compact!
options[:plugins].map! {|p| p.to_sym}
@options = options