Fix Lint/AmbiguousBlockAssociation cop.

This commit is contained in:
Robert Haines 2020-02-09 10:55:41 +00:00
parent 98c6969c18
commit 20743a53b2
2 changed files with 1 additions and 6 deletions

View File

@ -31,11 +31,6 @@ Layout/HashAlignment:
- 'lib/zip/file.rb'
- 'rubyzip.gemspec'
# Offense count: 1
Lint/AmbiguousBlockAssociation:
Exclude:
- 'test/filesystem/file_nonmutating_test.rb'
# Offense count: 1
Lint/LiteralAsCondition:
Exclude:

View File

@ -439,7 +439,7 @@ class ZipFsFileNonmutatingTest < MiniTest::Test
'*/foo/**/*.txt' => ['globTest/foo/bar/baz/foo.txt']
}.each do |spec, expected_results|
results = zf.glob(spec)
assert results.all? { |entry| entry.is_a? ::Zip::Entry }
assert(results.all? { |entry| entry.is_a? ::Zip::Entry })
result_strings = results.map(&:to_s)
missing_matches = expected_results - result_strings