diff options
| author | Jack Nagel | 2014-06-12 18:14:48 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-12 18:14:48 -0500 |
| commit | 3f3ba8462ea38dc6746c8d605d63cdcabca2f7ab (patch) | |
| tree | ba6a67160150418b2e70238097520296a3e3c1c0 /Library | |
| parent | 8c2db70cf8f9aedc524b336b7216f5f95d147dcc (diff) | |
| download | brew-3f3ba8462ea38dc6746c8d605d63cdcabca2f7ab.tar.bz2 | |
Always expand __FILE__
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_formula.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_formula_install.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb index 80980173c..2b6e356d2 100644 --- a/Library/Homebrew/test/test_formula.rb +++ b/Library/Homebrew/test/test_formula.rb @@ -170,7 +170,7 @@ class FormulaTests < Test::Unit::TestCase bottle { sha1 TEST_SHA1 => bottle_tag } def initialize - super "test", Pathname.new(__FILE__) + super "test", Pathname.new(__FILE__).expand_path end end.new diff --git a/Library/Homebrew/test/test_formula_install.rb b/Library/Homebrew/test/test_formula_install.rb index 8ce9e1ae1..cc42bff61 100644 --- a/Library/Homebrew/test/test_formula_install.rb +++ b/Library/Homebrew/test/test_formula_install.rb @@ -56,10 +56,10 @@ class InstallTests < Test::Unit::TestCase def test_script_install f = Class.new(ScriptFileFormula) do - url "file://#{__FILE__}" + url "file://#{File.expand_path(__FILE__)}" version "1" def initialize - super "test_script_formula", Pathname.new(__FILE__) + super "test_script_formula", Pathname.new(__FILE__).expand_path end end.new |
