2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-27 11:49:56 +00:00
|
|
|
require "cmd/shared_examples/args_parse"
|
|
|
|
|
|
|
|
describe "Homebrew.formula_args" do
|
|
|
|
it_behaves_like "parseable arguments"
|
|
|
|
end
|
|
|
|
|
2017-02-23 06:01:02 +01:00
|
|
|
describe "brew formula", :integration_test do
|
|
|
|
it "prints a given Formula's path" do
|
|
|
|
formula_file = setup_test_formula "testball"
|
|
|
|
|
|
|
|
expect { brew "formula", "testball" }
|
|
|
|
.to output("#{formula_file}\n").to_stdout
|
|
|
|
.and not_to_output.to_stderr
|
|
|
|
.and be_a_success
|
|
|
|
end
|
|
|
|
end
|