We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83f79a3 commit cd0a5a9Copy full SHA for cd0a5a9
1 file changed
spec/lib/gcra/redis_store_spec.rb
@@ -330,4 +330,21 @@ def cleanup_redis
330
end
331
332
333
+
334
+ describe 'SCRIPT_NOT_IN_CACHE_RESPONSE_PATTERN' do
335
+ it 'matches Redis NOSCRIPT error' do
336
+ msg = 'NOSCRIPT No matching script. Please use EVAL.'
337
+ expect(GCRA::RedisStore::SCRIPT_NOT_IN_CACHE_RESPONSE_PATTERN).to match(msg)
338
+ end
339
340
+ it 'matches Valkey 8.0 NOSCRIPT error' do
341
+ msg = 'NOSCRIPT No matching script'
342
343
344
345
+ it 'does not match unrelated error' do
346
+ msg = 'SOME OTHER ERROR'
347
+ expect(GCRA::RedisStore::SCRIPT_NOT_IN_CACHE_RESPONSE_PATTERN).not_to match(msg)
348
349
350
0 commit comments