summaryrefslogtreecommitdiff
path: root/spec/integration/ruby
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-08-17 16:23:28 -0600
committermo khan <mo.khan@gmail.com>2020-08-18 09:27:34 -0600
commita54789bcfe9e05ab42dfb6e03457279384e343fe (patch)
tree9f0ad8087db423cf57b1e96451a0c977422a50d7 /spec/integration/ruby
parent24695063d1ba9a73ba92a44fae0813d5492cf29c (diff)
Update license_finder to 6.8.1
* Update CHANGELOG * Add default retry for all jobs * Ensure all deb packages are built
Diffstat (limited to 'spec/integration/ruby')
-rw-r--r--spec/integration/ruby/bundler_spec.rb24
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