Use custom mock prefix when searching for mock header files. #263

This commit is contained in:
Mark VanderVoord
2017-03-20 15:56:05 -04:00
parent 689610b864
commit 8a45ccf406

View File

@ -157,7 +157,7 @@ class UnityTestRunnerGenerator
mock_headers = []
includes.each do |include_path|
include_file = File.basename(include_path)
mock_headers << include_path if (include_file =~ /^mock/i)
mock_headers << include_path if (include_file =~ /^#{@options[:mock_prefix]}/i)
end
return mock_headers
end