diff --git a/Library/Homebrew/test/.rubocop_todo.yml b/Library/Homebrew/test/.rubocop_todo.yml index d3a7d38277..c3bbe7dc26 100644 --- a/Library/Homebrew/test/.rubocop_todo.yml +++ b/Library/Homebrew/test/.rubocop_todo.yml @@ -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: diff --git a/Library/Homebrew/test/cask/artifact/uninstall_zap_shared_examples.rb b/Library/Homebrew/test/cask/artifact/uninstall_zap_shared_examples.rb index 1102091806..56a8408360 100644 --- a/Library/Homebrew/test/cask/artifact/uninstall_zap_shared_examples.rb +++ b/Library/Homebrew/test/cask/artifact/uninstall_zap_shared_examples.rb @@ -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