tests: tap-readme integration test added
This commit is contained in:
parent
36c734b392
commit
4ba4812d1d
@ -287,6 +287,7 @@ class IntegrationCommandTests < Homebrew::TestCase
|
||||
def test_sh
|
||||
assert_match "Your shell has been configured",
|
||||
cmd("sh", {"SHELL" => "/usr/bin/true"})
|
||||
end
|
||||
|
||||
def test_info
|
||||
formula_file = CoreFormulaRepository.new.formula_dir/"testball.rb"
|
||||
@ -303,6 +304,16 @@ class IntegrationCommandTests < Homebrew::TestCase
|
||||
formula_file.unlink
|
||||
end
|
||||
|
||||
def test_tap_readme
|
||||
(HOMEBREW_LIBRARY/"Taps").mkpath
|
||||
assert_match "brew install homebrew/foo/<formula>",
|
||||
cmd("tap-readme", "foo", "--verbose")
|
||||
readme = HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo/README.md"
|
||||
assert readme.exist?, "The README should be created"
|
||||
ensure
|
||||
(HOMEBREW_LIBRARY/"Taps").rmtree
|
||||
end
|
||||
|
||||
def test_custom_command
|
||||
mktmpdir do |path|
|
||||
cmd = "int-test-#{rand}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user