From 1b389f0cd7143692fd02ce6a5b3ce3adca24ba7e Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Tue, 9 Jul 2024 17:59:11 +0200 Subject: [PATCH] spec_helper.rb: Fix typo in template previously we had `c.mock_with = <%= @configs['mock_with'] %>`. That's a regression. It's supposed to be `c.mock_with=<%= @configs['mock_with'] %>`. The issue here is the assumption that puppetlabs_spec_helper provides `mock_with` as rspec config option. But that's not the case. Regression was introduced in 9b09c959db3afe1d92552c3edc95efbfcfec3ad0 --- moduleroot/spec/spec_helper.rb.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moduleroot/spec/spec_helper.rb.erb b/moduleroot/spec/spec_helper.rb.erb index bd16fe96..94f8efd7 100644 --- a/moduleroot/spec/spec_helper.rb.erb +++ b/moduleroot/spec/spec_helper.rb.erb @@ -15,7 +15,7 @@ RSpec.configure do |c| c.hiera_config = <%= @configs['hiera_config'] %> <%- end -%> <%- if @configs['mock_with'] -%> - c.mock_with = <%= @configs['mock_with'] %> + c.mock_with <%= @configs['mock_with'] %> <%- end -%> end <%- if @configs['add_mocked_facts'] -%>