mirror of
https://github.com/github/choosealicense.com
synced 2024-11-05 11:18:50 +01:00
Catch invalid SPDX IDs when looking for the SPPX name, fixes #322
This commit is contained in:
parent
5531742d10
commit
ad1c2d9684
@ -16,6 +16,7 @@ describe "licenses" do
|
||||
|
||||
it "uses its SPDX name" do
|
||||
spdx = find_spdx(id)
|
||||
expect(spdx).to_not be_nil
|
||||
expect(spdx[1]["name"].gsub(/ only$/,"")).to eql(license["title"])
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user