aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testing_env.rb
diff options
context:
space:
mode:
authorBaptiste Fontaine2016-02-10 15:03:40 +0100
committerBaptiste Fontaine2016-02-10 18:47:00 +0100
commit0386f332229d0a6ca28813d84fc0eb480cd36310 (patch)
treee430a04341aea526e4ae3b655aff5be70a22e749 /Library/Homebrew/test/testing_env.rb
parente5b6f79b221ecf539ff9ade285667ca729e6c7da (diff)
downloadbrew-0386f332229d0a6ca28813d84fc0eb480cd36310.tar.bz2
tests: Add missing version tests
Closes Homebrew/homebrew#49031. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library/Homebrew/test/testing_env.rb')
-rw-r--r--Library/Homebrew/test/testing_env.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index 2aaf20c3f..d0c1d500d 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -30,8 +30,8 @@ module Homebrew
assert_equal Version.new(expected), actual
end
- def assert_version_detected(expected, url)
- assert_equal expected, Version.parse(url).to_s
+ def assert_version_detected(expected, url, specs={})
+ assert_equal expected, Version.detect(url, specs).to_s
end
def assert_version_nil(url)