mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f2ab66da73
The driver being used is an implementation detail of `redis-rb`. If somehow something break on one driver but not the other, it should be reported to redis-rb and fixed there. Also `redis-rb` `5.0` has a totally new client and hiredis binding so all this code no longer works with redis-rb 5.0.
22 lines
406 B
Ruby
22 lines
406 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rake/testtask"
|
|
|
|
task default: :test
|
|
|
|
task :package
|
|
|
|
Rake::TestTask.new do |t|
|
|
t.pattern = "test/**/*_test.rb"
|
|
t.warning = true
|
|
t.verbose = true
|
|
t.ruby_opts = ["--dev"] if defined?(JRUBY_VERSION)
|
|
end
|
|
|
|
namespace :test do
|
|
task :isolated do
|
|
Dir.glob("test/**/*_test.rb").all? do |file|
|
|
sh(Gem.ruby, "-w", file)
|
|
end || raise("Failures")
|
|
end
|
|
end
|