2016-10-24 22:53:25 +02:00
|
|
|
require "testing_env"
|
2016-09-26 19:55:50 +02:00
|
|
|
|
2016-09-27 00:03:40 +02:00
|
|
|
class IntegrationCommandTestIrb < IntegrationCommandTestCase
|
2016-09-26 19:55:50 +02:00
|
|
|
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
|