brew/Library/Homebrew/test/cmd/options_spec.rb

13 lines
397 B
Ruby
Raw Normal View History

2017-02-23 06:05:20 +01:00
describe "brew options", :integration_test do
it "prints a given Formula's options" do
2017-10-15 02:28:32 +02:00
setup_test_formula "testball", <<~EOS
2017-02-23 06:05:20 +01:00
depends_on "bar" => :recommended
EOS
expect { brew "options", "testball" }
.to output("--with-foo\n\tBuild with foo\n--without-bar\n\tBuild without bar support\n\n").to_stdout
.and not_to_output.to_stderr
.and be_a_success
end
end