From 20743a53b22d04dbd33149329a8d8819a4097bad Mon Sep 17 00:00:00 2001 From: Robert Haines Date: Sun, 9 Feb 2020 10:55:41 +0000 Subject: [PATCH] Fix Lint/AmbiguousBlockAssociation cop. --- .rubocop_todo.yml | 5 ----- test/filesystem/file_nonmutating_test.rb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0e012f1..5bdd4fc 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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: diff --git a/test/filesystem/file_nonmutating_test.rb b/test/filesystem/file_nonmutating_test.rb index 6248666..e416eec 100644 --- a/test/filesystem/file_nonmutating_test.rb +++ b/test/filesystem/file_nonmutating_test.rb @@ -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