about summary refs log tree commit diff
path: root/spec/lib/spam_check_spec.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-09-07 14:16:54 +0200
committerGitHub <noreply@github.com>2020-09-07 14:16:54 +0200
commit437d71bddf967573df3912ee5976f7c5a5a7b4c7 (patch)
tree322231d7d50704edf8da762b69ee22c9850f2ce3 /spec/lib/spam_check_spec.rb
parentd967251fdc3826ad27d30e55258cfa4cdfd7c871 (diff)
parente5f934ddf0aa4ef9efbf45751bc00bebff768d99 (diff)
Merge pull request #1418 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/lib/spam_check_spec.rb')
-rw-r--r--spec/lib/spam_check_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/spam_check_spec.rb b/spec/lib/spam_check_spec.rb
index d4d66a499..159d83257 100644
--- a/spec/lib/spam_check_spec.rb
+++ b/spec/lib/spam_check_spec.rb
@@ -150,9 +150,9 @@ RSpec.describe SpamCheck do
     let(:redis_key) { spam_check.send(:redis_key) }
 
     it 'remembers' do
-      expect(Redis.current.exists(redis_key)).to be true
+      expect(Redis.current.exists?(redis_key)).to be true
       spam_check.remember!
-      expect(Redis.current.exists(redis_key)).to be true
+      expect(Redis.current.exists?(redis_key)).to be true
     end
   end
 
@@ -166,9 +166,9 @@ RSpec.describe SpamCheck do
     end
 
     it 'resets' do
-      expect(Redis.current.exists(redis_key)).to be true
+      expect(Redis.current.exists?(redis_key)).to be true
       spam_check.reset!
-      expect(Redis.current.exists(redis_key)).to be false
+      expect(Redis.current.exists?(redis_key)).to be false
     end
   end