diff options
| author | Andrea Kao | 2016-07-19 08:33:36 -0700 |
|---|---|---|
| committer | Martin Afanasjew | 2016-07-19 17:33:36 +0200 |
| commit | 4f95f7ff84eb6a65b4b6d08af90d1e40e2ccb4fe (patch) | |
| tree | e70c46a464945a21516da10c15349cd37edb5bbd /Library | |
| parent | 4b40a87ca40f878affdfb9d2464ec8ea1246d9d2 (diff) | |
| download | brew-4f95f7ff84eb6a65b4b6d08af90d1e40e2ccb4fe.tar.bz2 | |
tests: add cmd/irb integration test (#501)
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 07068019f..0684ca987 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -690,4 +690,20 @@ class IntegrationCommandTests < Homebrew::TestCase cmd("install", "testball") assert_match "Would remove", cmd("unlink", "--dry-run", "testball") end + + def test_irb + assert_match "'v8'.f # => instance of the v8 formula", + cmd("irb", "--examples") + + setup_test_formula "testball" + + irb_test = HOMEBREW_TEMP/"irb-test.rb" + irb_test.write <<-EOS.undent + "testball".f + :testball.f + exit + EOS + + assert_match "Interactive Homebrew Shell", cmd("irb", irb_test) + end end |
