summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMartin Emde <martin.emde@gmail.com>2023-12-13 13:46:04 -0800
committergit <svn-admin@ruby-lang.org>2023-12-13 22:50:45 +0000
commitc1f4bfd41fa7e1fa23ef6803349ac009debdf61f (patch)
tree32608c55e25c89edbd31b7e78ec527798ae1ad51 /spec
parent5a0cbc934428b3babdce6f5d014c30afcb84e567 (diff)
[rubygems/rubygems] Revert "Merge pull request #7167 from nevinera/add-json-output-option-to-bundle-outdated"
This reverts commit https://github.com/rubygems/rubygems/commit/a4ac5116b8ea, reversing changes made to https://github.com/rubygems/rubygems/commit/8a6b180d0ae5. https://github.com/rubygems/rubygems/commit/a1efe4015d
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/bundler/cli_spec.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/bundler/bundler/cli_spec.rb b/spec/bundler/bundler/cli_spec.rb
index d3aa58cc29..c71fc8e9e7 100644
--- a/spec/bundler/bundler/cli_spec.rb
+++ b/spec/bundler/bundler/cli_spec.rb
@@ -1,7 +1,6 @@
# frozen_string_literal: true
require "bundler/cli"
-require "json"
RSpec.describe "bundle executable" do
it "returns non-zero exit status when passed unrecognized options" do
@@ -155,26 +154,6 @@ RSpec.describe "bundle executable" do
end
end
- context "with --json" do
- let(:flags) { "--json" }
-
- it "prints json output data when there are outdated gems" do
- run_command
- out_data = JSON.parse(out)
- expect(out_data.keys).to contain_exactly("outdated_count", "outdated_gems")
- expect(out_data["outdated_count"]).to eq(1)
- expect(out_data["outdated_gems"].length).to eq(1)
-
- gem_data = out_data["outdated_gems"].first
- expect(gem_data).to include({
- "current_spec" => hash_including("name" => "rack", "version" => "0.9.1"),
- "active_spec" => hash_including("name" => "rack", "version" => "1.0.0"),
- "dependency" => "rack (= 0.9.1)",
- "groups" => ["default"],
- })
- end
- end
-
context "with --parseable" do
let(:flags) { "--parseable" }