Permalink
Browse files

loading_test.rb with RAILS_ENV=development

  • Loading branch information...
1 parent 11d41e8 commit 8e51383a6b65c5e20bbee83a3023b81ab6791c45 @arunagw committed Jun 5, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/application/loading_test.rb
@@ -4,10 +4,16 @@ class LoadingTest < 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 app
@app ||= Rails.application
end

0 comments on commit 8e51383

Please sign in to comment.