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

Use the `all` matcher to check the existence of each path.
This commit is contained in:
Markus Reiter 2018-10-13 23:27:43 +02:00 committed by GitHub
commit 2cb0050a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -78,11 +78,6 @@ RSpec/InstanceVariable:
- 'utils/git_spec.rb' - 'utils/git_spec.rb'
- 'version_spec.rb' - 'version_spec.rb'
# Offense count: 1
RSpec/IteratedExpectation:
Exclude:
- 'cask/artifact/uninstall_zap_shared_examples.rb'
# Offense count: 1 # Offense count: 1
# Cop supports --auto-correct. # Cop supports --auto-correct.
RSpec/LeadingSubject: RSpec/LeadingSubject:

View File

@ -183,9 +183,7 @@ shared_examples "#uninstall_phase or #zap_phase" do
end end
it "is supported" do it "is supported" do
paths.each do |path| expect(paths).to all(exist)
expect(path).to exist
end
subject subject