From b6e3b146b2555e12d0b1bd6912cf90385195614d Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 7 Sep 2022 20:36:09 +0100 Subject: [PATCH] test/dev-cmd/audit_spec: use `eq` instead of `match` --- Library/Homebrew/test/dev-cmd/audit_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb index 4d401712c0..f05566a10e 100644 --- a/Library/Homebrew/test/dev-cmd/audit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb @@ -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/