summaryrefslogtreecommitdiffstats
path: root/lib/tasks/testing.rake
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-01-01 10:28:56 +0000
committerGo MAEDA <maeda@farend.jp>2018-01-01 10:28:56 +0000
commit89de01076aaa35d4cb52ae278dd52c3fa5a2b745 (patch)
treee9970d234ded5660a85670b73ce0b699f5616fd8 /lib/tasks/testing.rake
parentc35433ad01ab79b1dd4573efcb1f9038a3729917 (diff)
downloadredmine-89de01076aaa35d4cb52ae278dd52c3fa5a2b745.tar.gz
redmine-89de01076aaa35d4cb52ae278dd52c3fa5a2b745.zip
Replace Minitest.rake_run with Rails::TestUnit::Runner.rake_run for compatibility with Rails 5.1.4 (#27871).
Patch by Tatsuya Saito. git-svn-id: http://svn.redmine.org/redmine/trunk@17139 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/testing.rake')
-rw-r--r--lib/tasks/testing.rake6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake
index fbb25cfd1..33bedd4e0 100644
--- a/lib/tasks/testing.rake
+++ b/lib/tasks/testing.rake
@@ -81,20 +81,20 @@ namespace :test do
task(:units => "db:test:prepare") do |t|
$: << "test"
- Minitest.rake_run FileList['test/unit/repository*_test.rb'] + FileList['test/unit/lib/redmine/scm/**/*_test.rb']
+ Rails::TestUnit::Runner.rake_run FileList['test/unit/repository*_test.rb'] + FileList['test/unit/lib/redmine/scm/**/*_test.rb']
end
Rake::Task['test:scm:units'].comment = "Run the scm unit tests"
task(:functionals => "db:test:prepare") do |t|
$: << "test"
- Minitest.rake_run FileList['test/functional/repositories*_test.rb']
+ Rails::TestUnit::Runner.rake_run FileList['test/functional/repositories*_test.rb']
end
Rake::Task['test:scm:functionals'].comment = "Run the scm functional tests"
end
task(:routing) do |t|
$: << "test"
- Minitest.rake_run FileList['test/integration/routing/*_test.rb'] + FileList['test/integration/api_test/*_routing_test.rb']
+ Rails::TestUnit::Runner.rake_run FileList['test/integration/routing/*_test.rb'] + FileList['test/integration/api_test/*_routing_test.rb']
end
Rake::Task['test:routing'].comment = "Run the routing tests"
end