Merge pull request #13823 from Bo98/test-match-fix

test/dev-cmd/audit_spec: use `eq` instead of `match`
This commit is contained in:
Bo Anderson 2022-09-07 21:33:13 +01:00 committed by GitHub
commit 8a807dcd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ module Homebrew
RUBY
fa.audit_license
expect(fa.problems.first[:message]).to match <<~EOS
expect(fa.problems.first[:message]).to eq <<~EOS
Formula foo contains deprecated SPDX licenses: ["GPL-1.0"].
You may need to add `-only` or `-or-later` for GNU licenses (e.g. `GPL`, `LGPL`, `AGPL`, `GFDL`).
For a list of valid licenses check: https://spdx.org/licenses/
@ -196,7 +196,7 @@ module Homebrew
RUBY
fa.audit_license
expect(fa.problems.first[:message]).to match <<~EOS
expect(fa.problems.first[:message]).to eq <<~EOS
Formula foo contains deprecated SPDX licenses: ["GPL-1.0"].
You may need to add `-only` or `-or-later` for GNU licenses (e.g. `GPL`, `LGPL`, `AGPL`, `GFDL`).
For a list of valid licenses check: https://spdx.org/licenses/