summaryrefslogtreecommitdiff
path: root/spec/integration/ruby
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-07-08 11:55:30 -0600
committermo khan <mo.khan@gmail.com>2020-07-08 14:10:08 -0600
commitb4a36141a7cbbf52b470739a9b0580cf51863a6c (patch)
treef78ebd6d0c684982d6e591c8d1b3351ea375dc48 /spec/integration/ruby
parent6e5916dfa78cb7277de3237164b33a80138e582c (diff)
Detect gems.rb and gems.locked
Diffstat (limited to 'spec/integration/ruby')
-rw-r--r--spec/integration/ruby/bundler_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/integration/ruby/bundler_spec.rb b/spec/integration/ruby/bundler_spec.rb
index 6961067..30cf776 100644
--- a/spec/integration/ruby/bundler_spec.rb
+++ b/spec/integration/ruby/bundler_spec.rb
@@ -127,4 +127,17 @@ RSpec.describe "bundler" do
expect(subject.licenses_for('net-hippie')).to match_array(['MIT'])
end
end
+
+ context "when scanning a projects with a gems.lock" do
+ before do
+ runner.mount(dir: fixture_file('ruby/bundler-v2.1-gems.lock'))
+ end
+
+ specify do
+ expect(subject).to match_schema
+ expect(subject[:licenses]).not_to be_empty
+ expect(subject.dependency_names).to include('spandx')
+ expect(subject.licenses_for('spandx')).to match_array(['MIT'])
+ end
+ end
end