diff options
| author | Baptiste Fontaine | 2016-01-20 01:33:20 +0100 |
|---|---|---|
| committer | Baptiste Fontaine | 2016-01-20 20:15:34 +0100 |
| commit | 4ba4812d1dcc40e54e5ad92511dc7005589e075d (patch) | |
| tree | 1e1e761396099bb1be50b31d20caf488e2559f55 /Library/Homebrew | |
| parent | 36c734b392cb08a1a7d0e5a3184b52d258bbf0cf (diff) | |
| download | brew-4ba4812d1dcc40e54e5ad92511dc7005589e075d.tar.bz2 | |
tests: tap-readme integration test added
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 11 |
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}" |
