Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
login test
Commit Description:
login test
require 'test_helper'
class LoginTest < ActionDispatch :: IntegrationTest
# test "the truth" do
# assert true
# end
test "login with invalid information" do
get root_path
assert_response :success
post login_login_path , login : "root" , password : "hahaha"
assert_redirected_to root_path
end
test "normal user login" do
get root_path
assert_response :success
post login_login_path , { login : "john" , password : "hello" }
assert_redirected_to main_list_path
end
test "normal user login in single_user mode" do
GraderConfiguration [ GraderConfiguration :: SINGLE_USER_KEY ] = 'true'
get root_path
assert_response :success
post login_login_path , { login : "john" , password : "hello" }
assert_redirected_to root_path
end
test "root login in in single_user mode" do
GraderConfiguration [ GraderConfiguration :: SINGLE_USER_KEY ] = 'true'
get root_path
assert_response :success
post login_login_path , { login : "admin" , password : "admin" }
assert_redirected_to main_list_path
end
end
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings