diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-25 17:37:41 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-25 17:37:41 -0600 |
| commit | 2637ee99cd2f31ff4fcf04e4cabecbfa0e06ffbb (patch) | |
| tree | dddceade8540ae36ce2ee2ad084f2cfea1b74c91 /spec/integration/core/cache_spec.rb | |
| parent | a73590a3f54c0c0022328b2b499177ea832cf414 (diff) | |
Fix some specs
Diffstat (limited to 'spec/integration/core/cache_spec.rb')
| -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 23e8de3..ef4c477 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, root: Spandx.git[key].root) } + subject { described_class.new(package_manager, root: "#{Spandx.git[key].root}/.index") } (0x00..0xFF).map { |x| x.to_s(16).upcase.rjust(2, '0').downcase }.each do |hex| context hex do - let(:path) { subject.expand_path(".index/#{hex}/#{package_manager}") } + let(:path) { subject.expand_path("#{hex}/#{package_manager}") } it "is able to find all packages in the #{package_manager} index" do CSV.foreach(path) do |row| |
