diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-19 22:21:34 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-19 22:21:34 -0600 |
| commit | 9cbad86761dab4f1c7cf33efcf56628c912e08c6 (patch) | |
| tree | eeebbb526d53924d22d3afb3dbe9e197562a2b89 /spec/integration/core | |
| parent | 39c7f3396e99ef79ddf994249b8f2657ca67481d (diff) | |
Collapse file storage code into Cache class
Diffstat (limited to 'spec/integration/core')
| -rw-r--r-- | spec/integration/core/cache_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/core/cache_spec.rb b/spec/integration/core/cache_spec.rb index 8f56c55..113168c 100644 --- a/spec/integration/core/cache_spec.rb +++ b/spec/integration/core/cache_spec.rb @@ -3,11 +3,11 @@ RSpec.describe Spandx::Core::Cache do RSpec.shared_examples 'each data file' do |package_manager, key| describe "#licenses_for (#{package_manager})" do - subject { described_class.new(package_manager, db: Spandx.git[key]) } + subject { described_class.new(package_manager, root: Spandx.git[key].path) } (0x00..0xFF).map { |x| x.to_s(16).upcase.rjust(2, '0').downcase }.each do |hex| context hex do - let(:path) { subject.db.expand_path(".index/#{hex}/#{package_manager}") } + let(:path) { subject.expand_path(".index/#{hex}/#{package_manager}") } it "is able to find all packages in the #{package_manager} index" do CSV.foreach(path) do |row| |
