File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Rake::TestTask.new do |task|
3434 test_files = FileList [ 'src/test/ruby/**/test*.rb' ] . to_a
3535 task . test_files = test_files . map { |path | path . sub ( 'src/test/ruby/' , '' ) }
3636 task . verbose = true
37- task . loader = "ARGV.each { |f| require f unless f.start_with?('-') }"
37+ task . loader = :direct
3838 task . ruby_opts = [ '-C' , 'src/test/ruby' , '-rbundler/setup' ]
3939end
4040task :test => 'lib/jopenssl.jar'
@@ -49,7 +49,7 @@ namespace :integration do
4949 unless File . exist? ( File . join ( it_path , 'Gemfile.lock' ) )
5050 raise "bundle not installed, run `rake integration:install'"
5151 end
52- loader = "ARGV.each { |f | require f unless f.start_with?('-' ) }"
52+ loader = "ARGV.each { |file | require(file ) }"
5353 lib = [ File . expand_path ( '../lib' , __FILE__ ) , it_path ]
5454 test_files = FileList [ 'src/test/integration/*_test.rb' ] . map { |path | path . sub ( 'src/test/integration/' , '' ) }
5555 ruby "-I#{ lib . join ( ':' ) } -C src/test/integration -e \" #{ loader } \" #{ test_files . map { |f | "\" #{ f } \" " } . join ( ' ' ) } "
You can’t perform that action at this time.
0 commit comments