mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
DEV: Fix various spec linting issues (#24672)
Duplicated specs, incorrect descriptions, incorrect assertions, incorrect filenames, old todo
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user