summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/license/management/repository_spec.rb18
1 files changed, 17 insertions, 1 deletions
diff --git a/spec/unit/license/management/repository_spec.rb b/spec/unit/license/management/repository_spec.rb
index 6006e8a..5fa37e9 100644
--- a/spec/unit/license/management/repository_spec.rb
+++ b/spec/unit/license/management/repository_spec.rb
@@ -32,7 +32,23 @@ RSpec.describe License::Management::Repository do
end
[
- ['Apache License v2.0', 'Apache-2.0']
+ ['Apache License v2.0', 'Apache-2.0'],
+ ['COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0', 'CDDL-1.0'],
+ ['Common Development and Distribution License 1.1', 'CDDL-1.1'],
+ ['Apache Software License - Version 2.0', 'Apache-2.0'],
+ ['ASF 2.0', 'Apache-2.0'],
+ ['Eclipse Public License - v 1.0', 'EPL-1.0'],
+ ['Eclipse Public License 1.0', 'EPL-1.0'],
+ ['Eclipse Public License v1.0', 'EPL-1.0'],
+ ['GNU General Public License v2.0 only, with Classpath exception', 'GPL-2.0-only'],
+ ['GNU General Public License, version 2', 'GPL-2.0-only'],
+ ['GNU Lesser General Public License v2.1 or later', 'LGPL-2.1-or-later'],
+ ['GNU Library General Public License v2.1 or later', 'LGPL-2.1+'],
+ ['GPL-2.0', 'GPL-2.0-only'],
+ ['LGPL-2.1', 'LGPL-2.1'],
+ ['GPL2 w/ CPE', 'GPL-2.0-only'],
+ ['BSD 3-Clause License', 'BSD-3-Clause'],
+ ['The BSD 3-Clause License', 'BSD-3-Clause']
].each do |short_name, spdx_id|
context "when mapping a `#{short_name}` license" do
let(:license) { LicenseFinder::License.new(short_name: short_name, matcher: LicenseFinder::License::NoneMatcher.new, url: nil) }