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:
commit
2cb0050a99
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user