From 2c19d8a13603c8d6e41917aaefe85880a13269c6 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 27 Dec 2013 11:15:53 -0500 Subject: [PATCH] Fix password_validator_spec --- spec/components/validators/password_validator_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/components/validators/password_validator_spec.rb b/spec/components/validators/password_validator_spec.rb index 7e0197098..f0f8608cd 100644 --- a/spec/components/validators/password_validator_spec.rb +++ b/spec/components/validators/password_validator_spec.rb @@ -11,7 +11,7 @@ describe PasswordValidator do context "password is not common" do before do - CommonPasswords.any_instance.stubs(:common_password?).returns(false) + CommonPasswords.stubs(:common_password?).returns(false) end context "min password length is 8" do @@ -55,7 +55,7 @@ describe PasswordValidator do context "password is commonly used" do before do - CommonPasswords.any_instance.stubs(:common_password?).returns(true) + CommonPasswords.stubs(:common_password?).returns(true) end it "adds an error when block_common_passwords is enabled" do