aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd/options_spec.rb
blob: 33fe8b1078e4a508c8e00dcfd57e8aa145e27b6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
describe "brew options", :integration_test do
  it "prints a given Formula's options" do
    setup_test_formula "testball", <<-EOS.undent
      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