Add option 'create_error_stubs' in before

This commit is contained in:
Roland Stahn
2025-06-03 13:14:23 +02:00
committed by GitHub
parent f60fe4b808
commit d20dca34ab
6 changed files with 7 additions and 4 deletions
@@ -27,7 +27,8 @@ describe CMockGeneratorPluginArray, "Verify CMockPGeneratorluginArray Module" do
@config = create_stub(
:when_ptr => :compare_data,
:enforce_strict_ordering => false,
:respond_to? => true )
:respond_to? => true,
:create_error_stubs => true)
@utils = UtilsStub.new
@@ -17,6 +17,7 @@ describe CMockGeneratorPluginExpect, "Verify CMockGeneratorPluginExpect Module W
:when_ptr => :compare_data,
:enforce_strict_ordering => false,
:respond_to? => true,
:create_error_stubs => true,
:plugins => [ :expect ] )
@utils.expect :helpers, {}
@@ -12,7 +12,7 @@ describe CMockGeneratorPluginExpectAnyArgs, "Verify CMockGeneratorPluginExpectAn
before do
create_mocks :config, :utils
@config = create_stub(:respond_to? => true)
@config = create_stub(:respond_to? => true, :create_error_stubs => true)
@cmock_generator_plugin_expect_any_args = CMockGeneratorPluginExpectAnyArgs.new(@config, @utils)
end
@@ -17,6 +17,7 @@ describe CMockGeneratorPluginExpect, "Verify CMockGeneratorPluginExpect Module w
:when_ptr => :compare_data,
:enforce_strict_ordering => true,
:respond_to? => true,
:create_error_stubs => true,
:plugins => [ :expect, :expect_any_args ] )
@utils.expect :helpers, {}
@@ -12,7 +12,7 @@ describe CMockGeneratorPluginIgnoreStateless, "Verify CMockGeneratorPluginIgnore
before do
create_mocks :config, :utils
@config = create_stub(:respond_to? => true)
@config = create_stub(:respond_to? => true, :create_error_stubs => true)
@cmock_generator_plugin_ignore_stateless = CMockGeneratorPluginIgnoreStateless.new(@config, @utils)
end
@@ -12,7 +12,7 @@ describe CMockGeneratorPluginIgnore, "Verify CMockGeneratorPluginIgnore Module"
before do
create_mocks :config, :utils
@config = create_stub(:respond_to? => true)
@config = create_stub(:respond_to? => true, :create_error_stubs => true)
@cmock_generator_plugin_ignore = CMockGeneratorPluginIgnore.new(@config, @utils)
end