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

Merge pull request #2160 from reitermarkus/spec-cat

Convert `brew cat` test to spec.
parents b7d3c6df d914c41b
No related branches found
Tags 2.2.0
Loading
require "testing_env"
class IntegrationCommandTestCat < IntegrationCommandTestCase
def test_cat
formula_file = setup_test_formula "testball"
assert_equal formula_file.read.chomp, cmd("cat", "testball")
end
end
describe "brew cat", :integration_test do
it "prints the content of a given Formula" do
formula_file = setup_test_formula "testball"
content = formula_file.read
expect { brew "cat", "testball" }
.to output(content).to_stdout
.and not_to_output.to_stderr
.and be_a_success
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