diff options
| author | Can Eldem <celdem@gitlab.com> | 2020-08-19 12:04:46 +0000 |
|---|---|---|
| committer | Can Eldem <celdem@gitlab.com> | 2020-08-19 12:04:46 +0000 |
| commit | 99a89248b2e6c08bf7a5c6c7950793b1418b9555 (patch) | |
| tree | 9f0ad8087db423cf57b1e96451a0c977422a50d7 /spec/integration/ruby | |
| parent | 24695063d1ba9a73ba92a44fae0813d5492cf29c (diff) | |
| parent | a54789bcfe9e05ab42dfb6e03457279384e343fe (diff) | |
Merge branch 'upgrade-license-finder' into 'master'v3.23.0
Upgrade license finder to 6.8.1
See merge request gitlab-org/security-products/license-management!209
Diffstat (limited to 'spec/integration/ruby')
| -rw-r--r-- | spec/integration/ruby/bundler_spec.rb | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/spec/integration/ruby/bundler_spec.rb b/spec/integration/ruby/bundler_spec.rb index 30cf776..6cb5543 100644 --- a/spec/integration/ruby/bundler_spec.rb +++ b/spec/integration/ruby/bundler_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe "bundler" do @@ -82,8 +84,6 @@ RSpec.describe "bundler" do specify do expect(subject).to match_schema - expect(subject[:licenses]).not_to be_empty - expect(subject[:dependencies]).not_to be_empty expect(subject.dependency_names).to include('rails') expect(subject.dependency_names).to include('vue') end @@ -140,4 +140,24 @@ RSpec.describe "bundler" do expect(subject.licenses_for('spandx')).to match_array(['MIT']) end end + + context "when scanning a jruby project" do + before do + runner.mount(dir: fixture_file('ruby/bundler-jruby')) + end + + pending do + expect(subject).to match_schema + expect(subject[:licenses]).not_to be_empty + expect(subject.dependency_names).not_to include('jruby-profiler-flame_graph_profile_printer') + + expect(subject.dependency_names).to include('activerecord-jdbcpostgresql-adapter') + expect(subject.dependency_names).to include('protobuf_java_helpers') + expect(subject.dependency_names).to include('fast_blank_java') + + expect(subject.licenses_for('activerecord-jdbcpostgresql-adapter')).to match_array(['MIT']) + expect(subject.licenses_for('protobuf_java_helpers')).to match_array(['MIT']) + expect(subject.licenses_for('fast_blank_java')).to match_array(['MIT']) + end + end end |
