aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-03-18 15:47:26 -0500
committerJack Nagel2014-03-18 21:28:33 -0500
commit45bdeadd9421f660562d17b2617ebc814d8f622e (patch)
tree17097f0dd3cc933c8262093339f2b80f6824a5b5 /Library/Homebrew/test
parentaaea4d236a5d470caf91c1827fcc30a911c42303 (diff)
downloadbrew-45bdeadd9421f660562d17b2617ebc814d8f622e.tar.bz2
Set bottle download strategy directly
We know what strategy we want, so going through DownloadStrategyDetector is wasted work. Now we can remove those patterns from the detector and have two fewer branches each time through.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_download_strategies.rb1
-rw-r--r--Library/Homebrew/test/test_software_spec.rb1
2 files changed, 0 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_download_strategies.rb b/Library/Homebrew/test/test_download_strategies.rb
index 6ecfb54f7..8e44cc532 100644
--- a/Library/Homebrew/test/test_download_strategies.rb
+++ b/Library/Homebrew/test/test_download_strategies.rb
@@ -1,6 +1,5 @@
require 'testing_env'
require 'download_strategy'
-require 'bottles' # XXX: hoist these regexps into constants in Pathname?
class ResourceDouble
attr_reader :url, :specs
diff --git a/Library/Homebrew/test/test_software_spec.rb b/Library/Homebrew/test/test_software_spec.rb
index 7c9fb8720..f4a63e244 100644
--- a/Library/Homebrew/test/test_software_spec.rb
+++ b/Library/Homebrew/test/test_software_spec.rb
@@ -1,6 +1,5 @@
require 'testing_env'
require 'software_spec'
-require 'bottles'
class SoftwareSpecTests < Test::Unit::TestCase
include VersionAssertions