Commit ec630ffc3b0199a29dbf4b908f17bd3edc3e7bc0

Authored by Dmitriy Zaporozhets
1 parent 46c50caa

More fixes to test because of long password

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
spec/lib/auth_spec.rb
@@ -8,21 +8,21 @@ describe Gitlab::Auth do @@ -8,21 +8,21 @@ describe Gitlab::Auth do
8 @user = create( 8 @user = create(
9 :user, 9 :user,
10 username: 'john', 10 username: 'john',
11 - password: '888777',  
12 - password_confirmation: '888777' 11 + password: '88877711',
  12 + password_confirmation: '88877711'
13 ) 13 )
14 end 14 end
15 15
16 it "should find user by valid login/password" do 16 it "should find user by valid login/password" do
17 - gl_auth.find('john', '888777').should == @user 17 + gl_auth.find('john', '88877711').should == @user
18 end 18 end
19 19
20 it "should not find user with invalid password" do 20 it "should not find user with invalid password" do
21 - gl_auth.find('john', 'invalid').should_not == @user 21 + gl_auth.find('john', 'invalid11').should_not == @user
22 end 22 end
23 23
24 it "should not find user with invalid login and password" do 24 it "should not find user with invalid login and password" do
25 - gl_auth.find('jon', 'invalid').should_not == @user 25 + gl_auth.find('jon', 'invalid11').should_not == @user
26 end 26 end
27 end 27 end
28 end 28 end