diff options
| author | can eldem <eldemcan@gmail.com> | 2020-06-18 17:27:13 +0100 |
|---|---|---|
| committer | can eldem <eldemcan@gmail.com> | 2020-06-18 19:13:28 +0100 |
| commit | 8d2e8f1b4d0cd0cd82cacface1ac3faf97c73fae (patch) | |
| tree | 930a5342cf3f7752ed77aff0699835e575a8d4bf /spec/unit | |
| parent | 64a83b700f63af76c5915b10dccb8745ebc4fed5 (diff) | |
Detect variations of the Eclipse Public License
Diffstat (limited to 'spec/unit')
| -rw-r--r-- | spec/unit/license/management/repository_spec.rb | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/spec/unit/license/management/repository_spec.rb b/spec/unit/license/management/repository_spec.rb index 6006e8a..6925c2c 100644 --- a/spec/unit/license/management/repository_spec.rb +++ b/spec/unit/license/management/repository_spec.rb @@ -32,7 +32,22 @@ 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'], + ['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) } |
