Commit ec630ffc authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

More fixes to test because of long password

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 46c50caa
......@@ -8,21 +8,21 @@ describe Gitlab::Auth do
@user = create(
:user,
username: 'john',
password: '888777',
password_confirmation: '888777'
password: '88877711',
password_confirmation: '88877711'
)
end
it "should find user by valid login/password" do
gl_auth.find('john', '888777').should == @user
gl_auth.find('john', '88877711').should == @user
end
it "should not find user with invalid password" do
gl_auth.find('john', 'invalid').should_not == @user
gl_auth.find('john', 'invalid11').should_not == @user
end
it "should not find user with invalid login and password" do
gl_auth.find('jon', 'invalid').should_not == @user
gl_auth.find('jon', 'invalid11').should_not == @user
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment