DEV: Fix various spec linting issues (#24672)

Duplicated specs, incorrect descriptions, incorrect assertions, incorrect filenames, old todo
This commit is contained in:
Jarek Radosz
2023-12-04 13:45:19 +01:00
committed by GitHub
parent c2887d3f8c
commit 7196613e2e
29 changed files with 33 additions and 151 deletions

View File

@ -208,13 +208,6 @@ RSpec.describe DiscourseRedis do
expect(helper.eval(Discourse.redis, %w[key1 key2], %w[arg1 arg2])).to eq("arg1arg2key1key2")
end
it "works with arguments" do
helper = DiscourseRedis::EvalHelper.new <<~LUA
return ARGV[1]..ARGV[2]..KEYS[1]..KEYS[2]
LUA
expect(helper.eval(Discourse.redis, %w[key1 key2], %w[arg1 arg2])).to eq("arg1arg2key1key2")
end
it "uses evalsha correctly" do
redis_proxy =
Class