Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The default test_data.rb needs to be updated for 7.1 #11

Open
infews opened this issue Feb 5, 2024 · 0 comments
Open

The default test_data.rb needs to be updated for 7.1 #11

infews opened this issue Feb 5, 2024 · 0 comments

Comments

@infews
Copy link

infews commented Feb 5, 2024

** Invoke test_data:initialize (first_time)
** Invoke test_data:verify_config (first_time)
** Execute test_data:verify_config
** Invoke environment (first_time)
** Execute environment
DEPRECATION WARNING: `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2. (called from block in <main> at /Users/dwfrank/workspace/meals/config/environments/test_data.rb:7)
rake aborted!
NoMethodError: undefined method `generate_development_secret' for #<Meals::Application> (NoMethodError)

  self.secrets.secret_key_base ||= Rails.application.send(:generate_development_secret)
                                                    ^^^^^
Did you mean?  generate_local_secret

I know this was mentioned in #2, but it appears 7.1 has changed this, maybe for the better.

I've found that fixing the Deprecation and moving to :generate_local_secret gets me to the same error as #9.

I can submit a PR, but I'm not sure it works...yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant