1
0
Fork 0
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:
Łukasz Strzałkowski 2013-06-20 18:24:50 +02:00
parent 1a62369592
commit 194aebb02d

View file

@ -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|