Permalink
Browse files

Fix for CI server. Dependent on RAILS_ENV=development

  • Loading branch information...
1 parent 38b97d2 commit 5d78d812228950ad62b4e3895f50a6468a936dc9 @arunagw arunagw committed Jun 6, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/application/console_test.rb
@@ -4,10 +4,16 @@ class ConsoleTest < Test::Unit::TestCase
include ActiveSupport::Testing::Isolation
def setup
+ @prev_rails_env = ENV['RAILS_ENV']
+ ENV['RAILS_ENV'] = 'development'
build_app
boot_rails
end
+ def teardown
+ ENV['RAILS_ENV'] = @prev_rails_env
+ end
+
def load_environment(sandbox = false)
require "#{rails_root}/config/environment"
Rails.application.sandbox = sandbox

0 comments on commit 5d78d81

Please sign in to comment.