added roadmap and activity calls in projects functional tests

git-svn-id: http://redmine.rubyforge.org/svn/trunk@371 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-03-23 15:58:53 +00:00
parent 724ca74f51
commit 1493c2a9b4
2 changed files with 23 additions and 0 deletions

View File

@ -458,6 +458,15 @@ permissions_061:
mail_option: false mail_option: false
sort: 130 sort: 130
is_public: true is_public: true
permissions_062:
action: roadmap
id: 63
description: label_roadmap
controller: projects
mail_enabled: false
mail_option: false
sort: 107
is_public: true
permissions_050: permissions_050:
action: history action: history
id: 50 id: 50

View File

@ -112,6 +112,20 @@ class ProjectsControllerTest < Test::Unit::TestCase
assert_not_nil assigns(:fixed_issues) assert_not_nil assigns(:fixed_issues)
end end
def test_roadmap
get :roadmap, :id => 1
assert_response :success
assert_template 'roadmap'
assert_not_nil assigns(:versions)
end
def test_activity
get :activity, :id => 1
assert_response :success
assert_template 'activity'
assert_not_nil assigns(:events_by_day)
end
def test_search def test_search
get :search, :id => 1 get :search, :id => 1
assert_response :success assert_response :success