summaryrefslogtreecommitdiff
path: root/spec/integration/ruby/bundler_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/integration/ruby/bundler_spec.rb')
-rw-r--r--spec/integration/ruby/bundler_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/integration/ruby/bundler_spec.rb b/spec/integration/ruby/bundler_spec.rb
index 6cb5543..1c0e472 100644
--- a/spec/integration/ruby/bundler_spec.rb
+++ b/spec/integration/ruby/bundler_spec.rb
@@ -7,6 +7,10 @@ RSpec.describe "bundler" do
let(:env) { {} }
+ before do
+ system('rm -fr /opt/asdf/installs/ruby')
+ end
+
include_examples "each report version", "ruby", "bundler"
context "when the project depends on an older version of ruby specified in a `.ruby-version` file" do
@@ -89,6 +93,19 @@ RSpec.describe "bundler" do
end
end
+ context "when scanning the `gitlab-runner` project" do
+ before do
+ runner.clone('https://gitlab.com/gitlab-org/gitlab-runner.git')
+ end
+
+ 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('gitlab.com/gitlab-org/gitlab-terminal')
+ end
+ end
+
context "when fetching dependencies from a custom registry" do
before do
add_host('rubygems.test', '127.0.0.1')