More fixes to test because of long password
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
46c50caa6e
commit
ec630ffc3b
|
@ -8,21 +8,21 @@ describe Gitlab::Auth do
|
||||||
@user = create(
|
@user = create(
|
||||||
:user,
|
:user,
|
||||||
username: 'john',
|
username: 'john',
|
||||||
password: '888777',
|
password: '88877711',
|
||||||
password_confirmation: '888777'
|
password_confirmation: '88877711'
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should find user by valid login/password" do
|
it "should find user by valid login/password" do
|
||||||
gl_auth.find('john', '888777').should == @user
|
gl_auth.find('john', '88877711').should == @user
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should not find user with invalid password" do
|
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
|
end
|
||||||
|
|
||||||
it "should not find user with invalid login and password" do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue