aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAndrea Kao2016-06-01 16:26:32 -0700
committerMartin Afanasjew2016-06-02 01:26:32 +0200
commite4d0187120e61bc80d31ebecc3b38f0740b20bb5 (patch)
tree92ad9a1961f242491b692dfd41451be72dd22f86 /Library
parent4a8fcae3cc29600cb3736e44eae7834d5b6c6feb (diff)
downloadbrew-e4d0187120e61bc80d31ebecc3b38f0740b20bb5.tar.bz2
tests: extend cmd/home integration test (#305)
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