diff options
| author | mo khan <mo.khan@gmail.com> | 2020-07-13 09:57:29 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-08-21 16:31:57 -0600 |
| commit | cbc4d1e328fd0e578f038d57fbd6b9354dafa79e (patch) | |
| tree | 99b53a90cd7c0996a2d0993b41eb56a695bcc996 /spec/integration/ruby | |
| parent | eb11eeb1018c4d32e8dbaf3f734e588205f0671f (diff) | |
Install tools from .deb package
Diffstat (limited to 'spec/integration/ruby')
| -rw-r--r-- | spec/integration/ruby/bundler_spec.rb | 17 |
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') |
