diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-02 15:11:12 +0000 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-02 15:11:12 +0000 |
| commit | 2d200e2bcecb91eadc5ee211f5bb65aafa645054 (patch) | |
| tree | 9749333a7c8878b833b4642afe3071cf1c14012c /spec/integration/ruby/bundler_spec.rb | |
| parent | 43bcbbd04342faa497725c5b0be3c6d944d850da (diff) | |
| parent | bfd7459419921ff37ee500f0698862eea6788675 (diff) | |
Merge branch '10128-go-modules' into 'master'v3.5.0
Improve license detection in go modules projects
See merge request gitlab-org/security-products/license-management!129
Diffstat (limited to 'spec/integration/ruby/bundler_spec.rb')
| -rw-r--r-- | spec/integration/ruby/bundler_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/integration/ruby/bundler_spec.rb b/spec/integration/ruby/bundler_spec.rb index f2f2873..5236adf 100644 --- a/spec/integration/ruby/bundler_spec.rb +++ b/spec/integration/ruby/bundler_spec.rb @@ -82,10 +82,10 @@ BUNDLED WITH end report = runner.scan - expect(report).not_to be_empty + expect(report).to match_schema(version: '2.0') expect(report[:licenses]).not_to be_empty - expect(report[:dependencies].map { |x| x[:name] }).to include("saml-kit") + expect(report.dependency_names).to include("saml-kit") end end @@ -117,9 +117,10 @@ BUNDLED WITH end report = runner.scan + expect(report).to match_schema(version: '2.0') expect(report[:licenses]).not_to be_empty - expect(find_in(report, 'net-hippie')).to eql({ + expect(report.find('net-hippie')).to eql({ name: 'net-hippie', description: "net/http for hippies. ☮️", url: "https://github.com/mokhan/net-hippie/", |
