Permalink
Browse files

Switched to a relative load of rake/phony for ruby integration

  • Loading branch information...
1 parent 19b64f1 commit 2312af6633a5620172d43d23a00ce42f9672b104 @drbrain drbrain committed Nov 15, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/test_rake_file_task.rb
@@ -1,10 +1,6 @@
require File.expand_path('../helper', __FILE__)
require 'fileutils'
-def load_phony
- load File.dirname(__FILE__) + "/../lib/rake/phony.rb"
-end
-
class TestRakeFileTask < Rake::TestCase
include Rake
@@ -119,4 +115,8 @@ def ztest_file_deletes_on_failure
assert( ! File.exist?(NEWFILE), "NEWFILE should be deleted")
end
+ def load_phony
+ load File.join(@orig_PWD, "lib/rake/phony.rb")
+ end
+
end

0 comments on commit 2312af6

Please sign in to comment.