splint: audit fix

fix audit from error message:

```
splint:
 * Use `assert_match` instead of `assert ...include?`

Error: 1 problem in 1 formula
```

Closes Homebrew/homebrew#46786.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Thanabodee Charoenpiriyakij 2015-12-08 11:33:43 +07:00 committed by Mike McQuaid
parent 613f4c99e1
commit 33f0e0c1c7

View file

@ -29,9 +29,8 @@ class Splint < Formula
}
EOS
output = `#{bin}/splint #{path} 2>&1`
assert output.include?("5:18: Variable c used before definition")
assert_equal 1, $?.exitstatus
output = shell_output("#{bin}/splint #{path} 2>&1", 1)
assert_match "5:18: Variable c used before definition", output
end
end