From 194aebb02dc07f34daadcaca3f07b1d8c132e0a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Strza=C5=82kowski?= Date: Thu, 20 Jun 2013 18:24:50 +0200 Subject: Fix isolated tests on AV --- actionview/Rakefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'actionview') diff --git a/actionview/Rakefile b/actionview/Rakefile index b9f34e0617..087b249dfe 100644 --- a/actionview/Rakefile +++ b/actionview/Rakefile @@ -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| -- cgit v1.2.3