mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix isolated tests on AV
This commit is contained in:
parent
1a62369592
commit
194aebb02d
1 changed files with 5 additions and 3 deletions
|
@ -22,9 +22,11 @@ Rake::TestTask.new(:test_action_view) do |t|
|
|||
end
|
||||
|
||||
namespace :test do
|
||||
Rake::TestTask.new(:isolated) do |t|
|
||||
t.libs << 'test'
|
||||
t.pattern = 'test/ts_isolated.rb'
|
||||
task :isolated do
|
||||
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
|
||||
Dir.glob("test/{active_record,template}/**/*_test.rb").all? do |file|
|
||||
sh(ruby, '-Ilib:test', file)
|
||||
end or raise "Failures"
|
||||
end
|
||||
|
||||
Rake::TestTask.new(:template) do |t|
|
||||
|
|
Loading…
Reference in a new issue