Skip to content

Fix running the test suite#46

Merged
david22swan merged 1 commit into
puppetlabs:mainfrom
smortex:fix-test-suite
Apr 26, 2024
Merged

Fix running the test suite#46
david22swan merged 1 commit into
puppetlabs:mainfrom
smortex:fix-test-suite

Conversation

@smortex

@smortex smortex commented Dec 11, 2023

Copy link
Copy Markdown
Contributor

The rspec-collection_matchers documentation advise to require
rspec-collection_matchers form spec_helper.rb.

This fix:

Failure/Error: expect(problems).to have(1).problems

NoMethodError:
  undefined method `have' for #<RSpec::ExampleGroups::CheckUnsafeInterpolations::WithFixDisabled::ExecWithUnsafeInterpolationInCommand "detects an unsafe exec command argument" (./spec/puppet-lint/plugins/check_unsafe_interpolations_spec.rb:20)>

The rspec-collection_matchers documentation advise to require
rspec-collection_matchers form `spec_helper.rb`.

This fix:

```
Failure/Error: expect(problems).to have(1).problems

NoMethodError:
  undefined method `have' for #<RSpec::ExampleGroups::CheckUnsafeInterpolations::WithFixDisabled::ExecWithUnsafeInterpolationInCommand "detects an unsafe exec command argument" (./spec/puppet-lint/plugins/check_unsafe_interpolations_spec.rb:20)>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants