summaryrefslogtreecommitdiff
path: root/spec/unit/cli
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-12-28 23:29:53 -0700
committerGitHub <noreply@github.com>2020-12-28 23:29:53 -0700
commit1043036ace85c2ab3835abd29cd76eb268d89b23 (patch)
tree92ab2891bfd4eb628085ad7db5030fb6e3248971 /spec/unit/cli
parenta18f47bae6e509ec75d8bcdff5157d80d928ece0 (diff)
parentcd23bb8a43ba574b008df4ed587c0b1604a412cc (diff)
Merge pull request #35 from spandx/gemsv0.17.0
Iterate through each gem in rubygems index
Diffstat (limited to 'spec/unit/cli')
-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 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