Add ability to inject correct mock prefix

This commit is contained in:
Mark VanderVoord
2016-11-21 15:19:16 -05:00
parent 012064eaea
commit 4e2f0381cc
+2 -1
View File
@@ -96,6 +96,7 @@ class UnityModuleGenerator
:update_svn => false,
:boilerplates => {},
:test_prefix => 'Test',
:mock_prefix => 'Mock',
}
end
@@ -136,7 +137,7 @@ class UnityModuleGenerator
:includes => case(triad[:inc])
when :src then @options[:includes][:src] | pattern_traits[:inc].map{|f| f % [module_name]}
when :inc then @options[:includes][:inc]
when :tst then @options[:includes][:tst] | pattern_traits[:inc].map{|f| "Mock#{f}"% [module_name]}
when :tst then @options[:includes][:tst] | pattern_traits[:inc].map{|f| "#{@options[:mock_prefix]}#{f}"% [module_name]}
end
}
end