Skip to content
Snippets Groups Projects
Commit 797a07d5 authored by lionellloh's avatar lionellloh Committed by Lionell
Browse files

All tests adapted to pass

parent 14d18a97
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,7 @@ module Homebrew
end
if non_standard_licenses.present?
problem "Formula #{formula.name} contains non standard SPDX license: #{non_standard_licenses} "
problem "Formula #{formula.name} contains non standard SPDX license: #{non_standard_licenses}."
end
return unless @online
......
......@@ -2216,7 +2216,7 @@ class Formula
if args.nil?
return @licenses
else
@licenses = Array(args)
@licenses = Array(args) unless args == ""
puts @licenses
# license.
end
......
......@@ -120,7 +120,7 @@ module Homebrew
RUBY
fa.audit_license
expect(fa.problems.first).to match "#{custom_spdx_id} is not a standard SPDX license."
expect(fa.problems.first).to match "Formula foo contains non standard SPDX license: [\"zzz\"]."
end
it "verifies that a license info is a standard spdx id" do
......@@ -160,8 +160,8 @@ module Homebrew
RUBY
fa.audit_license
expect(fa.problems.first).to match "License mismatch - GitHub license is: GPL-3.0, "\
"but Formulae license states: #{standard_mismatch_spdx_id}."
expect(fa.problems.first).to match "License mismatch - GitHub license is: [\"GPL-3.0\"], "\
"but Formulae license states: #{Array(standard_mismatch_spdx_id)}."
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment