graphql-ruby-fragment_cache icon indicating copy to clipboard operation
graphql-ruby-fragment_cache copied to clipboard

Implicit config for test env

Open lazureykis opened this issue 2 years ago • 0 comments

Here is the problem with Rails 7.1 and this gem configuration. With Rails 7.1, in test environment, we always will see warning about cache format, because this gem creates cache store before rails app was initialized.

rails -v # -> Rails 7.1.2
rails new testapp && cd testapp && bundle add graphql-fragment_cache
RAILS_ENV=test bin/rails c

DEPRECATION WARNING: Support for `config.active_support.cache_format_version = 6.1` has been deprecated and will be removed in Rails 7.2.

Check the Rails upgrade guide at https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#new-activesupport-cache-serialization-format
for more information on how to upgrade.
 (called from block (2 levels) in require at /Users/lazureykis/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/runtime.rb:60)
Loading test environment (Rails 7.1.2)
irb(main):001>

lazureykis avatar Nov 20 '23 17:11 lazureykis