summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-05-03 09:31:08 -0600
committermo khan <mo.khan@gmail.com>2020-05-03 09:31:08 -0600
commit71ad69ec80e7c327f219f6cd2d4e8093c241f409 (patch)
treed4d20f24828499f8794cfd62a58a40da597ebd13 /spec
parentaad1f8c405cea3f54734246ecfa9e07ad6e42a39 (diff)
Remove fuzzy match
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/core/guess_spec.rb4
-rw-r--r--spec/unit/ruby/parsers/gemfile_lock_spec.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/spec/unit/core/guess_spec.rb b/spec/unit/core/guess_spec.rb
index 4d5364d..96dc99b 100644
--- a/spec/unit/core/guess_spec.rb
+++ b/spec/unit/core/guess_spec.rb
@@ -48,5 +48,9 @@ RSpec.describe Spandx::Core::Guess do
specify { expect(subject.license_for(content)&.id).to eql('MIT') }
end
+
+ specify do
+ expect(subject.license_for('Common Public License Version 1.0')&.id).to eql('CPL-1.0')
+ end
end
end
diff --git a/spec/unit/ruby/parsers/gemfile_lock_spec.rb b/spec/unit/ruby/parsers/gemfile_lock_spec.rb
index 0ba564d..50b6da1 100644
--- a/spec/unit/ruby/parsers/gemfile_lock_spec.rb
+++ b/spec/unit/ruby/parsers/gemfile_lock_spec.rb
@@ -24,7 +24,7 @@ RSpec.describe Spandx::Ruby::Parsers::GemfileLock do
specify { expect(spandx.name).to eql('spandx') }
specify { expect(spandx.version).to eql(Spandx::VERSION) }
- specify { expect(spandx.meta[:dependencies].map(&:name)).to match_array(%w[addressable bundler fuzzy_match net-hippie nokogiri thor zeitwerk]) }
+ specify { expect(spandx.meta[:dependencies].map(&:name)).to match_array(%w[addressable bundler net-hippie nokogiri thor zeitwerk]) }
specify { expect(spandx.meta[:platform]).to eql('ruby') }
specify { expect(spandx.meta[:source]).to be_a_kind_of(Bundler::Source) }
end