1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

Catch invalid SPDX IDs when looking for the SPPX name, fixes #322

This commit is contained in:
Ben Balter 2016-01-20 10:42:36 -05:00
parent 5531742d10
commit ad1c2d9684

View File

@ -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