mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix for CI server. Dependent on RAILS_ENV=development
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user