Fix Lint/AmbiguousBlockAssociation cop.
This commit is contained in:
parent
98c6969c18
commit
20743a53b2
|
@ -31,11 +31,6 @@ Layout/HashAlignment:
|
||||||
- 'lib/zip/file.rb'
|
- 'lib/zip/file.rb'
|
||||||
- 'rubyzip.gemspec'
|
- 'rubyzip.gemspec'
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
Lint/AmbiguousBlockAssociation:
|
|
||||||
Exclude:
|
|
||||||
- 'test/filesystem/file_nonmutating_test.rb'
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
Lint/LiteralAsCondition:
|
Lint/LiteralAsCondition:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|
|
@ -439,7 +439,7 @@ class ZipFsFileNonmutatingTest < MiniTest::Test
|
||||||
'*/foo/**/*.txt' => ['globTest/foo/bar/baz/foo.txt']
|
'*/foo/**/*.txt' => ['globTest/foo/bar/baz/foo.txt']
|
||||||
}.each do |spec, expected_results|
|
}.each do |spec, expected_results|
|
||||||
results = zf.glob(spec)
|
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)
|
result_strings = results.map(&:to_s)
|
||||||
missing_matches = expected_results - result_strings
|
missing_matches = expected_results - result_strings
|
||||||
|
|
Loading…
Reference in New Issue