summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-12-28 22:39:08 -0700
committermo khan <mo.khan@gmail.com>2020-12-28 22:39:08 -0700
commit3d50ddf88cdf5cfdafa2b6afd3594f8b313ab34d (patch)
tree36157172199496490218b68607a990315d8a0450 /spec
parent39ed51a3efed76cd6e93ac152b86b570a380b649 (diff)
test: include rubygems in build output
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/cli/build_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/unit/cli/build_spec.rb b/spec/unit/cli/build_spec.rb
index 0756ffc..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("nuget\nmaven\npypi\nOK\n")
+ expect(output.string).to eq("nuget\nmaven\npypi\nrubygems\nOK\n")
end
end
end