cmd/info: Add test for --json=v2
This commit is contained in:
parent
4c36cf2e8e
commit
d96ad81cd0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user