From 0d6ea9e26c17b4776f7707db19ff1eae12456b39 Mon Sep 17 00:00:00 2001 From: Lionell Date: Sat, 25 Jul 2020 22:49:57 +0800 Subject: [PATCH] Updated tests to pass --- Library/Homebrew/test/dev-cmd/audit_spec.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb index 0d1c2097f1..87c65925b3 100644 --- a/Library/Homebrew/test/dev-cmd/audit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb @@ -94,7 +94,6 @@ module Homebrew fa = formula_auditor "foo", <<~RUBY, spdx_data: spdx_data, new_formula: false class Foo < Formula url "https://brew.sh/foo-1.0.tgz" - license "" end RUBY @@ -106,7 +105,6 @@ module Homebrew fa = formula_auditor "foo", <<~RUBY, spdx_data: spdx_data, new_formula: true class Foo < Formula url "https://brew.sh/foo-1.0.tgz" - license "" end RUBY @@ -123,19 +121,19 @@ module Homebrew RUBY fa.audit_license - expect(fa.problems.first).to match "Formula foo contains non standard SPDX license: [\"zzz\"]." + expect(fa.problems.first).to match "Formula foo contains non-standard SPDX licenses: [\"zzz\"]." end it "detects if license array contains a non-standard spdx-id" do fa = formula_auditor "foo", <<~RUBY, spdx_data: spdx_data, new_formula: true class Foo < Formula url "https://brew.sh/foo-1.0.tgz" - license "#{license_array}" + license #{license_array_nonstandard} end RUBY fa.audit_license - expect(fa.problems.first).to match "Formula foo contains non standard SPDX license: [\"zzz\"]." + expect(fa.problems.first).to match "Formula foo contains non-standard SPDX licenses: [\"zzz\"]." end it "verifies that a license info is a standard spdx id" do