rubyonjets/jets

DEPRECATION WARNING: connection_config is deprecated and will be removed from Rails 6.2 (Use connection_db_config instead)

Closed this issue · 1 comments

Checklist

  • Upgrade Jets: Are you using the latest version of Jets? This allows Jets to fix issues fast. There's a jets upgrade command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/
  • Reproducibility: Are you reporting a bug others will be able to reproduce and not asking a question. If you're unsure or want to ask a question, do so on https://community.rubyonjets.com
  • Code sample: Have you put together a code sample to reproduce the issue and make it available? Code samples help speed up fixes dramatically. If it's an easily reproducible issue, then code samples are not needed. If you're unsure, please include a code sample.

My Environment

Software Version
Operating System MacOs 11.2.1
Jets 3.0.3
Ruby 2.5.7

Expected Behaviour

run bundle exec rspec without DEPRECATION WARNING

Current Behavior

~/jets/test(master) » bundle exec rspec                                                                                       jdaviderb@jorges-MacBook-Pro
DEPRECATION WARNING: connection_config is deprecated and will be removed from Rails 6.2 (Use connection_db_config instead) (called from <top (required)> at /Users/jdaviderb/jets/test/spec/spec_helper.rb:13)
DEPRECATION WARNING: DatabaseConfig#config will be removed in 6.2.0 in favor of DatabaseConfigurations#configuration_hash which returns a hash with symbol keys (called from <top (required)> at /Users/jdaviderb/jets/test/spec/spec_helper.rb:13)
DEPRECATION WARNING: spec_name is deprecated and will be removed from Rails 6.2 (please use name instead) (called from <top (required)> at /Users/jdaviderb/jets/test/spec/spec_helper.rb:13)
DEPRECATION WARNING: `environment` and `name` will be removed as parameters in 6.2.0, you may now pass an ActiveRecord::DatabaseConfigurations::DatabaseConfig as `configuration` instead. (called from <top (required)> at /Users/jdaviderb/jets/test/spec/spec_helper.rb:13)

Step-by-step reproduction instructions

jets new test
cd test 
bundle exec rspec

Code Sample

NO

Solution Suggestion

Hello @tongueroo this problem is solved in this PR #539