From 3518cda7928d1603af130823854aaa3ed7af4118 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 9 Aug 2015 09:32:40 +0100 Subject: [PATCH] audit: allow assert `!.*.include?`. Came up on Homebrew/homebrew#34573. --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index afc279c710..7b7d251697 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -795,7 +795,7 @@ class FormulaAuditor problem "Use the `#{method}` Ruby method instead of `system #{system}`" end - if line =~ /assert .*\.include?/ + if line =~ /assert [^!]+\.include?/ problem "Use `assert_match` instead of `assert ...include?`" end