mirror of
https://github.com/ThrowTheSwitch/Unity
synced 2025-05-28 03:19:34 -04:00
Add ability to inject correct mock prefix
This commit is contained in:
parent
012064eaea
commit
4e2f0381cc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user