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

@ -55,7 +55,7 @@ RSpec.describe CommonPasswords do
it "loads the passwords file if redis has an empty list" do
Discourse.redis.without_namespace.stubs(:scard).returns(0)
described_class.expects(:load_passwords).returns(["password"])
described_class.expects(:load_passwords).returns([])
list = described_class.password_list
expect(list).to respond_to(:include?)
end