Skip to content

Commit

Permalink
Merge pull request #3220 from mbichoffe/main
Browse files Browse the repository at this point in the history
Fix deprecation warnings from tests
  • Loading branch information
lomky authored Aug 15, 2024
2 parents 6d77286 + b65d36e commit 4c99cf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
config.cache_store = :null_store

# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false
config.action_dispatch.show_exceptions = :none

# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
Expand Down
4 changes: 3 additions & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def route(scope)
# confirmation, reset password and unlock tokens in the database.
# Devise will use the `secret_key_base` as its `secret_key`
# by default. You can change it below and use your own secret key.
# config.secret_key = 'abcdefg'
if Rails.env.test?
config.secret_key = Rails.application.secret_key_base
end

# ==> Controller configuration
# Configure the parent class to the devise controllers.
Expand Down

0 comments on commit 4c99cf2

Please sign in to comment.