mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 21:00:10 +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
|
it "uses its SPDX name" do
|
||||||
spdx = find_spdx(id)
|
spdx = find_spdx(id)
|
||||||
|
expect(spdx).to_not be_nil
|
||||||
expect(spdx[1]["name"].gsub(/ only$/,"")).to eql(license["title"])
|
expect(spdx[1]["name"].gsub(/ only$/,"")).to eql(license["title"])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user