Skip to content

Commit a97f52d

Browse files
committed
Load LintExampleGroup again in plugin tests
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
1 parent c455f9c commit a97f52d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def subject
134134
config.include(
135135
RSpec::LintExampleGroup,
136136
type: :lint,
137-
file_path: Regexp.compile(['spec', 'unit', 'puppet-lint', 'plugins'].join('[\\\/]')),
137+
file_path: Regexp.new('spec[\\\/](unit[\\\/])?puppet-lint[\\\/]plugins'),
138138
)
139139

140140
config.expect_with(:rspec) do |c|

0 commit comments

Comments
 (0)