mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Fix password_validator_spec
This commit is contained in:
parent
ab12695d63
commit
2c19d8a136
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ describe PasswordValidator do
|
||||||
|
|
||||||
context "password is not common" do
|
context "password is not common" do
|
||||||
before do
|
before do
|
||||||
CommonPasswords.any_instance.stubs(:common_password?).returns(false)
|
CommonPasswords.stubs(:common_password?).returns(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
context "min password length is 8" do
|
context "min password length is 8" do
|
||||||
|
@ -55,7 +55,7 @@ describe PasswordValidator do
|
||||||
|
|
||||||
context "password is commonly used" do
|
context "password is commonly used" do
|
||||||
before do
|
before do
|
||||||
CommonPasswords.any_instance.stubs(:common_password?).returns(true)
|
CommonPasswords.stubs(:common_password?).returns(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "adds an error when block_common_passwords is enabled" do
|
it "adds an error when block_common_passwords is enabled" do
|
||||||
|
|
Loading…
Reference in a new issue