rubyonjets / jets

Ruby on Jets
http://rubyonjets.com
MIT License
2.6k stars 181 forks source link

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

Closed jdaviderb closed 3 years ago

jdaviderb commented 3 years ago

Checklist

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

jdaviderb commented 3 years ago

Hello @tongueroo this problem is solved in this PR https://github.com/boltops-tools/jets/pull/539