diff options
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index afc279c71..7b7d25169 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 |
