Permalink
Browse files

Ensure secret_key_base is set for all environments

  • Loading branch information...
josevalim committed Dec 24, 2013
1 parent 6570448 commit 959cfcef7255bba720ce3f15323056533ea7b50a
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/test/isolation/abstract_unit.rb
@@ -136,6 +136,7 @@ def build_app(options = {})
end
add_to_config <<-RUBY
+ secrets.secret_key_base = "3b7cd727ee24e8444053437c36cc66c4"
config.eager_load = false
config.session_store :cookie_store, key: "_myapp_session"
config.active_support.deprecation = :log
@@ -155,8 +156,8 @@ def make_basic_app
require "action_view/railtie"
app = Class.new(Rails::Application)
- app.config.eager_load = false
app.secrets.secret_key_base = "3b7cd727ee24e8444053437c36cc66c4"
+ app.config.eager_load = false
app.config.session_store :cookie_store, key: "_myapp_session"
app.config.active_support.deprecation = :log

0 comments on commit 959cfce

Please sign in to comment.