cmd/info: Add test for --json=v2

This commit is contained in:
William Ma 2020-10-10 16:46:22 -04:00
parent 4c36cf2e8e
commit d96ad81cd0

View File

@ -17,6 +17,15 @@ describe "brew info", :integration_test do
.and not_to_output.to_stderr
.and be_a_success
end
it "prints as json with the --json=v2 flag" do
setup_test_formula "testball"
expect { brew "info", "testball", "--json=v2" }
.to output(a_json_string).to_stdout
.and not_to_output.to_stderr
.and be_a_success
end
end
describe Homebrew do