diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-13 10:49:11 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-13 10:49:11 -0600 |
| commit | 44c0d2b75ea2c815d86c5c211410cb1e0a2a498f (patch) | |
| tree | 5bd11175d7772aced3bdc5051057071c2e855470 /spec/integration/core | |
| parent | 6a901f291714ec319e9cd027d12aa5f42b12a9dd (diff) | |
Extract singletons for git dbs
Diffstat (limited to 'spec/integration/core')
| -rw-r--r-- | spec/integration/core/cache_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/integration/core/cache_spec.rb b/spec/integration/core/cache_spec.rb index db8def2..8f56c55 100644 --- a/spec/integration/core/cache_spec.rb +++ b/spec/integration/core/cache_spec.rb @@ -1,9 +1,9 @@ # frozen_string_literal: true RSpec.describe Spandx::Core::Cache do - RSpec.shared_examples 'each data file' do |package_manager, url| + RSpec.shared_examples 'each data file' do |package_manager, key| describe "#licenses_for (#{package_manager})" do - subject { described_class.new(package_manager, url: url) } + subject { described_class.new(package_manager, db: Spandx.git[key]) } (0x00..0xFF).map { |x| x.to_s(16).upcase.rjust(2, '0').downcase }.each do |hex| context hex do @@ -24,6 +24,6 @@ RSpec.describe Spandx::Core::Cache do end end - include_examples 'each data file', 'rubygems', 'https://github.com/mokhan/spandx-rubygems.git' - include_examples 'each data file', 'nuget', 'https://github.com/mokhan/spandx-index.git' + include_examples 'each data file', 'rubygems', :rubygems + include_examples 'each data file', 'nuget', :cache end |
