1
0
mirror of https://github.com/github/choosealicense.com synced 2024-06-30 23:53:02 +02:00

move FSF fix to the fsf_approved_licenses helper

This commit is contained in:
Ben Balter 2016-01-18 15:32:17 -05:00
parent 42e559a962
commit c8012557a4
2 changed files with 6 additions and 6 deletions

View File

@ -19,12 +19,6 @@ licenses.each do |license|
end
context "industry approval" do
# FSF approved the Clear BSD, but doesn't use its SPDX ID or Name
if license["id"] == "bsd-3-clause-clear"
let(:id) { "clearbsd" }
end
it "should be approved by OSI or FSF or OD" do
expect(approved_licenses).to include(id), "See https://git.io/vzCTV."
end

View File

@ -88,6 +88,12 @@ def fsf_approved_licenses
name = a.text.strip
licenses[id] = name
end
# FSF approved the Clear BSD, but doesn't use its SPDX ID or Name
if licenses.keys.include? "clearbsd"
licenses["bsd-3-clause-clear"] = licenses["clearbsd"]
end
licenses
end
end