From ad1c2d9684c87ff6797755d7aaad338377b4e6b4 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Wed, 20 Jan 2016 10:42:36 -0500 Subject: [PATCH] Catch invalid SPDX IDs when looking for the SPPX name, fixes #322 --- spec/license_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/license_spec.rb b/spec/license_spec.rb index e60cb64..aedd109 100644 --- a/spec/license_spec.rb +++ b/spec/license_spec.rb @@ -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