Always expand __FILE__

This commit is contained in:
Jack Nagel 2014-06-12 18:14:48 -05:00
parent 8c2db70cf8
commit 3f3ba8462e
2 changed files with 3 additions and 3 deletions

View File

@ -170,7 +170,7 @@ class FormulaTests < Test::Unit::TestCase
bottle { sha1 TEST_SHA1 => bottle_tag } bottle { sha1 TEST_SHA1 => bottle_tag }
def initialize def initialize
super "test", Pathname.new(__FILE__) super "test", Pathname.new(__FILE__).expand_path
end end
end.new end.new

View File

@ -56,10 +56,10 @@ class InstallTests < Test::Unit::TestCase
def test_script_install def test_script_install
f = Class.new(ScriptFileFormula) do f = Class.new(ScriptFileFormula) do
url "file://#{__FILE__}" url "file://#{File.expand_path(__FILE__)}"
version "1" version "1"
def initialize def initialize
super "test_script_formula", Pathname.new(__FILE__) super "test_script_formula", Pathname.new(__FILE__).expand_path
end end
end.new end.new