summaryrefslogtreecommitdiff
path: root/spec/integration/core
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-10 16:34:30 -0600
committermo khan <mo.khan@gmail.com>2020-04-10 16:34:30 -0600
commit6f21aafc85483be2729ff4e95de4d4d7bd71b584 (patch)
treef5dbc5c3464f71d0375c1700c2a663a80517d4f3 /spec/integration/core
parent1e25dc55d843886b06517fa813dc9f65c2777f83 (diff)
Resolve licenses from a central location
Diffstat (limited to 'spec/integration/core')
-rw-r--r--spec/integration/core/cache_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/core/cache_spec.rb b/spec/integration/core/cache_spec.rb
index ec1a8b2..db8def2 100644
--- a/spec/integration/core/cache_spec.rb
+++ b/spec/integration/core/cache_spec.rb
@@ -11,7 +11,7 @@ RSpec.describe Spandx::Core::Cache do
it "is able to find all packages in the #{package_manager} index" do
CSV.foreach(path) do |row|
- results = subject.licenses_for(name: row[0], version: row[1])
+ results = subject.licenses_for(row[0], row[1])
expect(results).to match_array(row[2].split('-|-'))
end
end
@@ -19,7 +19,7 @@ RSpec.describe Spandx::Core::Cache do
end
it 'returns an empty list of unknown packages' do
- expect(subject.licenses_for(name: 'x', version: 'x')).to be_empty
+ expect(subject.licenses_for('x', 'x')).to be_empty
end
end
end