summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
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" }