aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-06-12 17:58:12 -0500
committerJack Nagel2014-06-12 17:58:12 -0500
commitfd5aaee7e91858e3460f99106a9bb0773668c9c1 (patch)
tree49c9a842fc28b056f709ca98607ed0dd17dd5b27
parentfc9ca49df7c3d1c63445d42fc9aa70a297373d29 (diff)
downloadhomebrew-fd5aaee7e91858e3460f99106a9bb0773668c9c1.tar.bz2
Remove an extra slash in file:// URLs in tests
-rw-r--r--Library/Homebrew/test/test_formula_install.rb2
-rw-r--r--Library/Homebrew/test/test_patching.rb6
-rw-r--r--Library/Homebrew/test/testball.rb2
3 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/test/test_formula_install.rb b/Library/Homebrew/test/test_formula_install.rb
index d8880c0eb..215fba2e6 100644
--- a/Library/Homebrew/test/test_formula_install.rb
+++ b/Library/Homebrew/test/test_formula_install.rb
@@ -5,7 +5,7 @@ require 'keg'
class TestScriptFileFormula < ScriptFileFormula
- url "file:///#{__FILE__}"
+ url "file://#{__FILE__}"
version "1"
def initialize(name="test_script_formula", path=nil)
diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb
index 381b7ce4f..a6dd746ee 100644
--- a/Library/Homebrew/test/test_patching.rb
+++ b/Library/Homebrew/test/test_patching.rb
@@ -3,12 +3,12 @@ require 'formula'
require 'testball'
class PatchingTests < Test::Unit::TestCase
- PATCH_URL_A = "file:///#{TEST_DIRECTORY}/patches/noop-a.diff"
- PATCH_URL_B = "file:///#{TEST_DIRECTORY}/patches/noop-b.diff"
+ PATCH_URL_A = "file://#{TEST_DIRECTORY}/patches/noop-a.diff"
+ PATCH_URL_B = "file://#{TEST_DIRECTORY}/patches/noop-b.diff"
def formula(&block)
super do
- url "file:///#{TEST_DIRECTORY}/tarballs/testball-0.1.tbz"
+ url "file://#{TEST_DIRECTORY}/tarballs/testball-0.1.tbz"
sha1 "482e737739d946b7c8cbaf127d9ee9c148b999f5"
class_eval(&block)
end
diff --git a/Library/Homebrew/test/testball.rb b/Library/Homebrew/test/testball.rb
index f08f3ff8f..e4ece70fd 100644
--- a/Library/Homebrew/test/testball.rb
+++ b/Library/Homebrew/test/testball.rb
@@ -3,7 +3,7 @@ require 'formula'
class TestBall < Formula
def initialize(name="test_ball", path=nil)
self.class.instance_eval do
- stable.url "file:///#{TEST_DIRECTORY}/tarballs/testball-0.1.tbz"
+ stable.url "file://#{TEST_DIRECTORY}/tarballs/testball-0.1.tbz"
stable.sha1 "482e737739d946b7c8cbaf127d9ee9c148b999f5"
end
super