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