Browse files

Merge pull request #13472 from schneems/schneems/fix-master-database-…

…url-tests

Fix railties tests in master
  • Loading branch information...
2 parents df09ce9 + 14c175c commit db22a5a8ebc39954432c3a943cf8f4b9b9eb9868 @josevalim josevalim committed Dec 24, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/test/isolation/abstract_unit.rb
View
3 railties/test/isolation/abstract_unit.rb
@@ -93,7 +93,8 @@ module Generation
# Build an application by invoking the generator and going through the whole stack.
def build_app(options = {})
@prev_rails_env = ENV['RAILS_ENV']
- ENV['RAILS_ENV'] = 'development'
+ ENV['RAILS_ENV'] = 'development'
+ ENV['RAILS_SECRET_KEY_BASE'] ||= SecureRandom.hex(16)
FileUtils.rm_rf(app_path)
FileUtils.cp_r(app_template_path, app_path)

0 comments on commit db22a5a

Please sign in to comment.