Skip to content

Commit

Permalink
spec_helper.rb: Fix typo in template
Browse files Browse the repository at this point in the history
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 9b09c95
  • Loading branch information
bastelfreak committed Jul 9, 2024
1 parent bf880be commit 1b389f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moduleroot/spec/spec_helper.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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'] -%>
Expand Down

0 comments on commit 1b389f0

Please sign in to comment.