Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for CI server. Dependent on RAILS_ENV=development

  • Loading branch information...
commit 5d78d812228950ad62b4e3895f50a6468a936dc9 1 parent 38b97d2
@arunagw arunagw authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/application/console_test.rb
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.