Skip to content

Commit

Permalink
framework_test.rb also dependent on RAILS_ENV=development
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed Jun 5, 2011
1 parent f9b4123 commit 11d41e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions railties/test/application/initializers/frameworks_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11d41e8

Please sign in to comment.