Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
merge with algo-bm
Commit Description:
merge with algo-bm
require File . dirname ( __FILE__ ) + '/../test_helper'
class GradersControllerTest < ActionController :: TestCase
fixtures :users , :roles , :rights
def test_should_not_allow_new_user_to_see
get :list
assert_redirected_to :controller => 'main' , :action => 'login'
end
def test_should_not_allow_normal_user_to_see
john = users ( :john )
get :list , {}, { :user_id => john . id }
assert_redirected_to :controller => 'main' , :action => 'login'
end
def test_should_allow_admin_to_see
mary = users ( :mary )
get :list , {}, { :user_id => mary . id }
assert_template 'graders/list'
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