summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-07 15:03:26 -0700
committermo khan <mo.khan@gmail.com>2020-03-07 15:03:26 -0700
commitbc29a9d7a98fab7de435d8a06007197efa189709 (patch)
treed43e6817b3e392059f6b6481cd54f713edd7127e /spec/unit
parent5f7786bb4865a9d9622c3819d8e0b5b67ebf0cfa (diff)
Fix nuget specs
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/license/management/repository_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/license/management/repository_spec.rb b/spec/unit/license/management/repository_spec.rb
index 6ebc09e..5531934 100644
--- a/spec/unit/license/management/repository_spec.rb
+++ b/spec/unit/license/management/repository_spec.rb
@@ -11,6 +11,13 @@ RSpec.describe License::Management::Repository do
expect(subject.item_for(license)['id']).to eql(spdx_id)
end
end
+
+ it 'recognizes `http://www.opensource.org/licenses/mit-license.php`' do
+ url = 'http://www.opensource.org/licenses/mit-license.php'
+ license = LicenseFinder::License.new(short_name: url, matcher: LicenseFinder::License::NoneMatcher.new, url: url)
+
+ expect(subject.item_for(license)['id']).to eql('MIT')
+ end
end
context "when mapping a license that refers to nuget.org" do