From 39dec69712aaf954c0f00f2a32c32356d789e3ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Tue, 19 Jun 2012 23:21:00 -0300 Subject: [PATCH] Run the logger tests in isolation --- activesupport/lib/active_support/testing/isolation.rb | 2 +- railties/test/application/rack/logger_test.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/testing/isolation.rb b/activesupport/lib/active_support/testing/isolation.rb index 8f22df6f2b..50ec50ca52 100644 --- a/activesupport/lib/active_support/testing/isolation.rb +++ b/activesupport/lib/active_support/testing/isolation.rb @@ -39,7 +39,7 @@ class ParallelEach include Enumerable # default to 2 cores - CORES = ENV['TEST_CORES'].to_i || 2 + CORES = (ENV['TEST_CORES'] || 2).to_i def initialize list @list = list diff --git a/railties/test/application/rack/logger_test.rb b/railties/test/application/rack/logger_test.rb index a77c6f472c..46fd09cb26 100644 --- a/railties/test/application/rack/logger_test.rb +++ b/railties/test/application/rack/logger_test.rb @@ -5,6 +5,7 @@ module ApplicationTests module RackTests class LoggerTest < ActiveSupport::TestCase + include ActiveSupport::Testing::Isolation include ActiveSupport::LogSubscriber::TestHelper include Rack::Test::Methods @@ -17,6 +18,7 @@ def setup end def teardown + super teardown_app end