diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index df71258d66bba550522c946c8b7d6c578e0ed6e8..a249146cf96940445a850016c6d5ef166fbdc605 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -552,6 +552,20 @@ class IntegrationCommandTests < Homebrew::TestCase def test_home assert_equal HOMEBREW_WWW, cmd("home", {"HOMEBREW_BROWSER" => "echo"}) + + formula_file = CoreTap.new.formula_dir/"testball.rb" + formula_file.write <<-EOS.undent + class Testball < Formula + desc "Some test" + homepage "https://example.com/testball" + url "https://example.com/testball-0.1.tar.gz" + end + EOS + + assert_equal Formula["testball"].homepage, + cmd("home", "testball", {"HOMEBREW_BROWSER" => "echo"}) + ensure + formula_file.unlink end def test_list