summaryrefslogtreecommitdiff
path: root/test/test_pp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pp.rb')
-rw-r--r--test/test_pp.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pp.rb b/test/test_pp.rb
index ef4da4638c..981fedd98f 100644
--- a/test/test_pp.rb
+++ b/test/test_pp.rb
@@ -1,4 +1,4 @@
require 'pathname'
-require Pathname.new(__FILE__).parent.join('inlinetest.rb')
-target = __FILE__.scan(/test_(.*\.rb)$/)[0][0]
+require Pathname.new(__FILE__).dirname.join('inlinetest.rb')
+target = __FILE__[/test_(.*\.rb)$/, 1]
InlineTest.loadtest(target)