Browse files

Fix isolated tests on AV

  • Loading branch information...
1 parent 1a62369 commit 194aebb02dc07f34daadcaca3f07b1d8c132e0a0 @lukaszx0 lukaszx0 committed Jun 20, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 actionview/Rakefile
View
8 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|

0 comments on commit 194aebb

Please sign in to comment.