Skip to content
Browse files

framework_test.rb also dependent on RAILS_ENV=development

  • Loading branch information...
1 parent f9b4123 commit 11d41e8b203329d75ec397f90baefe4b08976fb1 @arunagw arunagw committed Jun 5, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/application/initializers/frameworks_test.rb
View
6 railties/test/application/initializers/frameworks_test.rb
@@ -5,11 +5,17 @@ class FrameworksTest < Test::Unit::TestCase
include ActiveSupport::Testing::Isolation
def setup
+ @prev_rails_env = ENV['RAILS_ENV']
+ ENV['RAILS_ENV'] = 'development'
build_app
boot_rails
FileUtils.rm_rf "#{app_path}/config/environments"
end
+ def teardown
+ ENV['RAILS_ENV'] = @prev_rails_env
+ end
+
# AC & AM
test "set load paths set only if action controller or action mailer are in use" do
assert_nothing_raised NameError do

0 comments on commit 11d41e8

Please sign in to comment.
Something went wrong with that request. Please try again.