mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-09-17 15:49:59 +00:00
parse mock files correctly
This commit is contained in:
@@ -197,7 +197,7 @@ class UnityTestRunnerGenerator
|
|||||||
mock_headers = []
|
mock_headers = []
|
||||||
includes.each do |include_path|
|
includes.each do |include_path|
|
||||||
include_file = File.basename(include_path)
|
include_file = File.basename(include_path)
|
||||||
mock_headers << include_path if include_file =~ /^#{@options[:mock_prefix]}.*#{@options[:mock_suffix]}$/i
|
mock_headers << include_path if include_file =~ /^#{@options[:mock_prefix]}.*#{@options[:mock_suffix]}\.h$/i
|
||||||
end
|
end
|
||||||
mock_headers
|
mock_headers
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user