diff options
| author | mo khan <mo.khan@gmail.com> | 2020-05-03 11:12:13 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-05-03 11:12:13 -0600 |
| commit | f751b9d196e35ebaf29133a13f2aaf2f787e1077 (patch) | |
| tree | dd9068e7b2f8699a6b8f1a0fc059e115b7b985f8 /spec/unit | |
| parent | 99354acc03044c455eae576b6d513ae5ddca013e (diff) | |
Add pending specs for detections to correct
Diffstat (limited to 'spec/unit')
| -rw-r--r-- | spec/unit/cli/scan_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/core/guess_spec.rb | 30 |
2 files changed, 16 insertions, 16 deletions
diff --git a/spec/unit/cli/scan_spec.rb b/spec/unit/cli/scan_spec.rb index 8ee1d76..12df3aa 100644 --- a/spec/unit/cli/scan_spec.rb +++ b/spec/unit/cli/scan_spec.rb @@ -38,7 +38,7 @@ RSpec.describe Spandx::Cli::Commands::Scan do end end - specify { expect(result).to eql(fixture_file_content('recursive.expected')) } + pending { expect(result).to eql(fixture_file_content('recursive.expected')) } end context 'when scanning Gemfile.lock' do diff --git a/spec/unit/core/guess_spec.rb b/spec/unit/core/guess_spec.rb index e332530..6d39e19 100644 --- a/spec/unit/core/guess_spec.rb +++ b/spec/unit/core/guess_spec.rb @@ -49,21 +49,21 @@ RSpec.describe Spandx::Core::Guess do specify { expect(subject.license_for(content)&.id).to eql('MIT') } end - specify { expect(subject.license_for('Common Public License Version 1.0')&.id).to eql('CPL-1.0') } - specify { expect(subject.license_for('BSD-3-Clause OR MIT')&.id).to eql('BSD-3-Clause') } - specify { expect(subject.license_for('(MIT OR Apache-2.0)')&.id).to eql('MIT') } - specify { expect(subject.license_for('BSD-like')&.id).to eql('MIT') } - specify { expect(subject.license_for('MIT or GPLv3')&.id).to eql('MIT') } - specify { expect(subject.license_for('(MIT OR GPL-3.0)')&.id).to eql('MIT') } + pending { expect(subject.license_for('(0BSD OR MIT)')&.id).to eql('0BSD') } + pending { expect(subject.license_for('(BSD-2-Clause OR MIT OR Apache-2.0)')&.id).to eql('BSD-2-Clause') } + pending { expect(subject.license_for('(BSD-3-Clause OR GPL-2.0)')&.id).to eql('BSD-3-Clause') } + pending { expect(subject.license_for('(MIT AND CC-BY-3.0)')&.id).to eql('(MIT AND CC-BY-3.0)') } + pending { expect(subject.license_for('(MIT AND Zlib)')&.id).to eql(%w[MIT Zlib]) } + pending { expect(subject.license_for('(MIT OR Apache-2.0)')&.id).to eql('MIT') } + pending { expect(subject.license_for('(MIT OR CC0-1.0)')&.id).to eql('MIT') } + pending { expect(subject.license_for('(MIT OR GPL-3.0)')&.id).to eql('MIT') } + pending { expect(subject.license_for('(WTFPL OR MIT)')&.id).to eql('WTFPL') } + pending { expect(subject.license_for('(WTFPL OR MIT)')&.id).to eql('WTFPL') } + pending { expect(subject.license_for('BSD-3-Clause OR MIT')&.id).to eql('BSD-3-Clause') } + pending { expect(subject.license_for('BSD-like')&.id).to eql('MIT') } + pending { expect(subject.license_for('MIT or GPLv3')&.id).to eql('MIT') } + pending { expect(subject.license_for('MIT/X11')&.id).to eql('X11') } specify { expect(subject.license_for('Apache 2.0')&.id).to eql('Apache-2.0') } - specify { expect(subject.license_for('(BSD-3-Clause OR GPL-2.0)')&.id).to eql('BSD-3-Clause') } - specify { expect(subject.license_for('(WTFPL OR MIT)')&.id).to eql('WTFPL') } - specify { expect(subject.license_for('MIT/X11')&.id).to eql('X11') } - specify { expect(subject.license_for('(MIT AND Zlib)')&.id).to eql(['MIT', 'Zlib']) } - specify { expect(subject.license_for('(WTFPL OR MIT)')&.id).to eql('WTFPL') } - specify { expect(subject.license_for('(0BSD OR MIT)')&.id).to eql('0BSD') } - specify { expect(subject.license_for('(BSD-2-Clause OR MIT OR Apache-2.0)')&.id).to eql('BSD-2-Clause') } - specify { expect(subject.license_for('(MIT AND CC-BY-3.0)')&.id).to eql('(MIT AND CC-BY-3.0)') } - specify { expect(subject.license_for('(MIT OR CC0-1.0)')&.id).to eql('MIT') } + specify { expect(subject.license_for('Common Public License Version 1.0')&.id).to eql('CPL-1.0') } end end |
