From a54789bcfe9e05ab42dfb6e03457279384e343fe Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 17 Aug 2020 16:23:28 -0600 Subject: Update license_finder to 6.8.1 * Update CHANGELOG * Add default retry for all jobs * Ensure all deb packages are built --- spec/integration/ruby/bundler_spec.rb | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'spec/integration/ruby') 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 -- cgit v1.2.3