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

Merge pull request #2155 from reitermarkus/spec-formula-cmd

Convert `brew formula` test to spec.
parents 1c38fd6f a3b2ae1f
No related branches found
No related tags found
No related merge requests found
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
require "testing_env"
class IntegrationCommandTestFormula < IntegrationCommandTestCase
def test_formula
formula_file = setup_test_formula "testball"
assert_equal formula_file.to_s, cmd("formula", "testball")
end
end
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