Skip to content
Snippets Groups Projects
Commit 4f95f7ff authored by Andrea Kao's avatar Andrea Kao Committed by Martin Afanasjew
Browse files

tests: add cmd/irb integration test (#501)

parent 4b40a87c
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment