diff options
Diffstat (limited to 'spec/unit/cli/build_spec.rb')
| -rw-r--r-- | spec/unit/cli/build_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/unit/cli/build_spec.rb b/spec/unit/cli/build_spec.rb index 2706cb1..f2c6a1f 100644 --- a/spec/unit/cli/build_spec.rb +++ b/spec/unit/cli/build_spec.rb @@ -18,8 +18,11 @@ RSpec.describe Spandx::Cli::Commands::Build do stub_request(:get, 'https://pypi.org/simple/') .to_return(status: 200, body: '<html></html>') + stub_request(:get, 'https://index.rubygems.org/versions') + .to_return(status: 200, body: "created_at: 2020-12-01T00:00:35+00:00\n---\n") + subject.execute(output: output) - expect(output.string).to eq("maven\nnuget\npypi\nOK\n") + expect(output.string).to eq("nuget\nmaven\npypi\nrubygems\nOK\n") end end end |
