summaryrefslogtreecommitdiff
path: root/test/rake/test_rake_reduce_compat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rake/test_rake_reduce_compat.rb')
-rw-r--r--test/rake/test_rake_reduce_compat.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rake/test_rake_reduce_compat.rb b/test/rake/test_rake_reduce_compat.rb
index 9a82687816..6da8e4259c 100644
--- a/test/rake/test_rake_reduce_compat.rb
+++ b/test/rake/test_rake_reduce_compat.rb
@@ -4,9 +4,9 @@ require 'open3'
class TestRakeReduceCompat < Rake::TestCase
# TODO: factor out similar code in test_rake_functional.rb
def rake(*args)
- lib = File.expand_path('../../../lib', __FILE__)
- bin_rake = File.expand_path('../../../bin/rake', __FILE__)
- Open3.popen3(RUBY, "-I", lib, bin_rake, *args) { |_, out, _, _| out.read }
+ Open3.popen3(RUBY, "-I", @rake_lib, @rake_exec, *args) { |_, out, _, _|
+ out.read
+ }
end
def invoke_normal(task_name)