Permalink
Browse files

framework_test.rb also dependent on RAILS_ENV=development

  • Loading branch information...
arunagw committed Jun 5, 2011
1 parent 1debebc commit 55b52ee9d632ede35187a9ab930bedf3b5757251
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/application/initializers/frameworks_test.rb
@@ -5,11 +5,17 @@ class FrameworlsTest < 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 55b52ee

Please sign in to comment.