diff options
| author | mo khan <mo.khan@gmail.com> | 2020-05-17 13:50:01 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-05-17 13:50:01 -0600 |
| commit | 98a6f99450e7e0cd1a842a1499d38e1093d7ab19 (patch) | |
| tree | f871c72ca4249cb2d8542036a2d0bc0fe537779e /spec/unit/core | |
| parent | 6b392af62854d28b9f12fe292e21b79baa25c63b (diff) | |
Fix license detection for arrays
Diffstat (limited to 'spec/unit/core')
| -rw-r--r-- | spec/unit/core/guess_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/core/guess_spec.rb b/spec/unit/core/guess_spec.rb index c001c8a..9edb93d 100644 --- a/spec/unit/core/guess_spec.rb +++ b/spec/unit/core/guess_spec.rb @@ -44,6 +44,7 @@ RSpec.describe Spandx::Core::Guess do specify { expect(subject.license_for(content)&.id).to eql('MIT') } end + specify { expect(subject.license_for(%w[MIT 0BSD]).id).to eql('MIT AND 0BSD') } specify { expect(subject.license_for('(0BSD OR MIT)')&.id).to eql('0BSD OR MIT') } specify { expect(subject.license_for('(BSD-2-Clause OR MIT OR Apache-2.0)')&.id).to eql('BSD-2-Clause OR MIT OR Apache-2.0') } specify { expect(subject.license_for('(BSD-3-Clause OR GPL-2.0)')&.id).to eql('BSD-3-Clause OR GPL-2.0') } |
