Skip to content

Commit 3e156bc

Browse files
committed
Run legacy tests isolated
Rails 3.1 initializer doesn't like being in the same environment as require 'action_view/test_case'.
1 parent 4376644 commit 3e156bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ require 'rake/testtask'
33
task :default => :test
44

55
task :test_legacy do
6-
exec "testrb test/test_*.rb"
6+
Dir['test/test_*.rb'].each do |path|
7+
system "testrb", path
8+
exit($?.exitstatus) unless $?.success?
9+
end
710
end
811

912
Rake::TestTask.new(:test) do |t|

0 commit comments

Comments
 (0)