aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/Rakefile')
-rw-r--r--Library/Homebrew/test/Rakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/test/Rakefile b/Library/Homebrew/test/Rakefile
index 5faa77ca7..c92b19640 100644
--- a/Library/Homebrew/test/Rakefile
+++ b/Library/Homebrew/test/Rakefile
@@ -1,7 +1,9 @@
require 'rake'
require 'rake/testtask'
+require 'pathname'
+
+TEST_DIRECTORY = Pathname.new(File.expand_path(__FILE__)).parent.realpath
-TEST_DIRECTORY = File.expand_path(File.dirname(__FILE__))
TEST_FILES = FileList["#{TEST_DIRECTORY}/test_*.rb"]
Dir.chdir TEST_DIRECTORY
@@ -34,7 +36,7 @@ begin
--exclude=test_
--exclude=testball
--exclude=testing}
- t.output_dir = TEST_DIRECTORY+'/coverage'
+ t.output_dir = TEST_DIRECTORY+'coverage'
end
rescue LoadError
nil