aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb
index df71258d6..a249146cf 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