Skip to content
Snippets Groups Projects
Commit be2645b0 authored by Markus Reiter's avatar Markus Reiter
Browse files

Convert `brew options` test to spec.

parent c7121f6b
No related branches found
No related tags found
No related merge requests found
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
require "testing_env"
require "options"
require "testing_env"
class IntegrationCommandTestOptions < IntegrationCommandTestCase
def test_options
setup_test_formula "testball", <<-EOS.undent
depends_on "bar" => :recommended
EOS
assert_equal "--with-foo\n\tBuild with foo\n--without-bar\n\tBuild without bar support",
cmd("options", "testball").chomp
end
end
class OptionTests < Homebrew::TestCase
def setup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment