Skip to content
Snippets Groups Projects
Unverified Commit 2cb0050a authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #5099 from alecclarke/fix-style-in-uninstall_zap_shared_examples

Use the `all` matcher to check the existence of each path.
parents 65b44f2f 3a8e8713
No related branches found
No related tags found
No related merge requests found
......@@ -78,11 +78,6 @@ RSpec/InstanceVariable:
- 'utils/git_spec.rb'
- 'version_spec.rb'
# Offense count: 1
RSpec/IteratedExpectation:
Exclude:
- 'cask/artifact/uninstall_zap_shared_examples.rb'
# Offense count: 1
# Cop supports --auto-correct.
RSpec/LeadingSubject:
......
......@@ -183,9 +183,7 @@ shared_examples "#uninstall_phase or #zap_phase" do
end
it "is supported" do
paths.each do |path|
expect(path).to exist
end
expect(paths).to all(exist)
subject
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment