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

Merge pull request #2144 from reitermarkus/spec-readall

Convert `brew readall` test to spec.
parents e768786f 0458dce1
No related branches found
No related tags found
No related merge requests found
require "testing_env"
class IntegrationCommandTestReadall < IntegrationCommandTestCase
def test_readall
describe "brew readall", :integration_test do
it "imports all Formulae for a given Tap" do
formula_file = setup_test_formula "testball"
alias_file = CoreTap.new.alias_dir/"foobar"
alias_file.parent.mkpath
FileUtils.ln_s formula_file, alias_file
cmd("readall", "--aliases", "--syntax")
cmd("readall", "homebrew/core")
expect { brew "readall", "--aliases", "--syntax" }
.to be_a_success
.and not_to_output.to_stdout
.and not_to_output.to_stderr
expect { brew "readall", "homebrew/core" }
.to be_a_success
.and not_to_output.to_stdout
.and not_to_output.to_stderr
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