Skip to content

Commit

Permalink
Load LintExampleGroup again in plugin tests
Browse files Browse the repository at this point in the history
Plugins also use the spec helper from puppet-lint. Until
5f80b77 the expected directory
structure was spec/puppet-lint/plugins but that changed. This partially
reverts the change which means plugins don't have to move their files
around.

Fixes: 5f80b77
  • Loading branch information
ekohl committed Oct 20, 2022
1 parent c455f9c commit a97f52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def subject
config.include(
RSpec::LintExampleGroup,
type: :lint,
file_path: Regexp.compile(['spec', 'unit', 'puppet-lint', 'plugins'].join('[\\\/]')),
file_path: Regexp.new('spec[\\\/](unit[\\\/])?puppet-lint[\\\/]plugins'),
)

config.expect_with(:rspec) do |c|
Expand Down

0 comments on commit a97f52d

Please sign in to comment.