test_utils: add Bottles::Bintray tests

This commit is contained in:
Dominyk Tiller 2016-08-29 19:47:54 +01:00
parent d3b6a7a763
commit 4072628a80
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -244,4 +244,13 @@ class UtilTests < Homebrew::TestCase
assert_match "homebrew/homebrew-core", e.message
assert_match "homebrew/core", e.message
end
def test_bottles_bintray
assert_equal "openssl:1.1", Utils::Bottles::Bintray.package("openssl@1.1")
assert_equal "gtkx", Utils::Bottles::Bintray.package("gtk+")
assert_equal "llvm", Utils::Bottles::Bintray.package("llvm")
tap = Tap.new("homebrew", "bintray-test")
assert_equal "bottles-bintray-test", Utils::Bottles::Bintray.repository(tap)
end
end