Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
added contest model
Commit Description:
added contest model
require File . dirname ( __FILE__ ) + '/../test_helper'
class SitesControllerTest < ActionController :: TestCase
def test_should_get_index
get :index
assert_response :success
assert_not_nil assigns ( :sites )
end
def test_should_get_new
get :new
assert_response :success
end
def test_should_create_site
assert_difference ( 'Site.count' ) do
post :create , :site => { }
end
assert_redirected_to site_path ( assigns ( :site ))
end
def test_should_show_site
get :show , :id => sites ( :one ) . id
assert_response :success
end
def test_should_get_edit
get :edit , :id => sites ( :one ) . id
assert_response :success
end
def test_should_update_site
put :update , :id => sites ( :one ) . id , :site => { }
assert_redirected_to site_path ( assigns ( :site ))
end
def test_should_destroy_site
assert_difference ( 'Site.count' , - 1 ) do
delete :destroy , :id => sites ( :one ) . id
end
assert_redirected_to sites_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