From c1f4bfd41fa7e1fa23ef6803349ac009debdf61f Mon Sep 17 00:00:00 2001 From: Martin Emde Date: Wed, 13 Dec 2023 13:46:04 -0800 Subject: [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 --- spec/bundler/bundler/cli_spec.rb | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'spec') 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" } -- cgit v1.2.3