aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-12-28 13:23:22 +0100
committerBaptiste Fontaine2015-12-30 00:44:46 +0100
commitc15c9dbaf3d6bba4cf44b94963cad124952f902b (patch)
tree4355f2ad52c5a086fa72e80835ef16e0f0e1f9bb /Library/Homebrew/test
parent4b2eb86bbf5bb0ae76619e67be1bc99e8b68ee40 (diff)
downloadbrew-c15c9dbaf3d6bba4cf44b94963cad124952f902b.tar.bz2
Tap#issues_url added
Closes Homebrew/homebrew#47454. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_tap.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_tap.rb b/Library/Homebrew/test/test_tap.rb
index b8adb81f9..bd329c1d2 100644
--- a/Library/Homebrew/test/test_tap.rb
+++ b/Library/Homebrew/test/test_tap.rb
@@ -67,6 +67,22 @@ class TapTest < Homebrew::TestCase
refute_predicate @tap, :core_formula_repository?
end
+ def test_issues_url
+ t = Tap.new("someone", "foo")
+ path = Tap::TAP_DIRECTORY/"someone/homebrew-foo"
+ path.mkpath
+ FileUtils.cd path do
+ shutup { system "git", "init" }
+ system "git", "remote", "add", "origin",
+ "https://github.com/someone/homebrew-foo"
+ end
+ assert_equal "https://github.com/someone/homebrew-foo/issues", t.issues_url
+ assert_equal "https://github.com/Homebrew/homebrew-foo/issues", @tap.issues_url
+
+ (Tap::TAP_DIRECTORY/"someone/homebrew-no-git").mkpath
+ assert_nil Tap.new("someone", "no-git").issues_url
+ end
+
def test_files
setup_tap_files