Browse files

loading_test.rb with RAILS_ENV=development

  • Loading branch information...
1 parent 710dfff commit 077ffe0287e47f299f2627577a7d555220b81d09 @arunagw arunagw committed Jun 6, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/application/loading_test.rb
View
6 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 077ffe0

Please sign in to comment.