Skip to content

Commit

Permalink
Fix redis-activesupport with ActiveSupport 7.1.1
Browse files Browse the repository at this point in the history
Otherwise you'll see test failures like, eg,

```
NoMethodError: undefined method `present?' for 2:Integer

          if options[:expires_in].present? && options[:race_condition_ttl].present? && options[:raw].blank?
                                 ^^^^^^^^^
    /Users/jon/.gem/ruby/p0vc9077im6p4r2hwmjldm9qjdksn06v-ruby-3.1.4/gems/redis-activesupport-5.3.0/lib/active_support/cache/redis_store.rb:82:in
    `block in write'
```
  • Loading branch information
jdelStrother committed Oct 12, 2023
1 parent edf0a82 commit 55f70ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/acceptance/stores/active_support_redis_store_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
if defined?(::ActiveSupport::Cache::RedisStore)
require_relative "../../support/cache_store_helper"
require "timecop"
# redis-activesupport has some undeclared dependencies on ActiveSupport:
require "active_support/core_ext/object/blank"
require "active_support/core_ext/hash/keys"

describe "ActiveSupport::Cache::RedisStore as a cache backend" do
before do
Expand Down

0 comments on commit 55f70ca

Please sign in to comment.