aboutsummaryrefslogtreecommitdiffstats
path: root/test/rake/helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rake/helper.rb')
-rw-r--r--test/rake/helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rake/helper.rb b/test/rake/helper.rb
index 8c228c5cfa..9817e8f0cd 100644
--- a/test/rake/helper.rb
+++ b/test/rake/helper.rb
@@ -12,8 +12,8 @@ require 'tmpdir'
require File.expand_path('../file_creation', __FILE__)
begin
- require 'test/ruby/envutil'
-rescue LoadError
+ require_relative '../ruby/envutil'
+rescue NoMethodError, LoadError
# for ruby trunk
end
@@ -515,8 +515,8 @@ Rake::TestTask.new(:b) do |t|
end
task :test do
- Rake::Task[:a].invoke rescue nil
- Rake::Task[:b].invoke rescue nil
+ Rake::Task[:a].invoke
+ Rake::Task[:b].invoke
end
task :default => :test