DEV: Update redis gem to 4.8.0 (#19350)

This commit is contained in:
Alan Guo Xiang Tan
2022-12-08 06:48:44 +08:00
committed by GitHub
parent f334de0b4a
commit 773cf045b2
3 changed files with 23 additions and 3 deletions

View File

@ -115,6 +115,26 @@ RSpec.describe DiscourseRedis do
end
end
describe '#sadd?' do
it "should send the right command with the right key prefix to redis" do
redis = DiscourseRedis.new
redis.without_namespace.expects(:sadd?).with("default:testset", "1", anything)
redis.sadd?("testset", "1")
end
end
describe '#srem?' do
it "should send the right command with the right key prefix to redis" do
redis = DiscourseRedis.new
redis.without_namespace.expects(:srem?).with("default:testset", "1", anything)
redis.srem?("testset", "1")
end
end
describe 'when namespace is disabled' do
let(:redis) { DiscourseRedis.new(nil, namespace: false) }