Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for CI server. Dependent on RAILS_ENV=development
  • Loading branch information
arunagw committed Jun 6, 2011
1 parent 077ffe0 commit e909fa4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions railties/test/application/console_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit e909fa4

Please sign in to comment.