aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/Rakefile
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-06-20 18:24:50 +0200
committerŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-06-20 18:24:50 +0200
commit194aebb02dc07f34daadcaca3f07b1d8c132e0a0 (patch)
tree3a0e8b3ad036ae4d59e10ae32d30227f05059525 /actionview/Rakefile
parent1a623695920b720e8ed3237d5f8ef700d2763259 (diff)
downloadrails-194aebb02dc07f34daadcaca3f07b1d8c132e0a0.tar.gz
rails-194aebb02dc07f34daadcaca3f07b1d8c132e0a0.tar.bz2
rails-194aebb02dc07f34daadcaca3f07b1d8c132e0a0.zip
Fix isolated tests on AV
Diffstat (limited to 'actionview/Rakefile')
-rw-r--r--actionview/Rakefile8
1 files changed, 5 insertions, 3 deletions
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|