aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorBaptiste Fontaine2016-01-20 01:33:20 +0100
committerBaptiste Fontaine2016-01-20 20:15:34 +0100
commit4ba4812d1dcc40e54e5ad92511dc7005589e075d (patch)
tree1e1e761396099bb1be50b31d20caf488e2559f55 /Library/Homebrew
parent36c734b392cb08a1a7d0e5a3184b52d258bbf0cf (diff)
downloadbrew-4ba4812d1dcc40e54e5ad92511dc7005589e075d.tar.bz2
tests: tap-readme integration test added
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb
index 7f088c4c5..373260250 100644
--- a/Library/Homebrew/test/test_integration_cmds.rb
+++ b/Library/Homebrew/test/test_integration_cmds.rb
@@ -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}"