diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-10-24 17:12:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-10-24 17:12:39 +0000 |
commit | 16eda4c5c91c55a09eec7a1d04b9db98aeb4ece5 (patch) | |
tree | 5e613765f4d5e5f9883a227abddd7db2397b66eb /test | |
parent | b4101c8b65ecab179a3af492023d95a20d4bc388 (diff) | |
download | redmine-16eda4c5c91c55a09eec7a1d04b9db98aeb4ece5.tar.gz redmine-16eda4c5c91c55a09eec7a1d04b9db98aeb4ece5.zip |
Adds the ability to search for a project name or identifier on the administration projects list.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1947 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/admin_controller_test.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/functional/admin_controller_test.rb b/test/functional/admin_controller_test.rb index 05205b399..7c2626082 100644 --- a/test/functional/admin_controller_test.rb +++ b/test/functional/admin_controller_test.rb @@ -45,6 +45,25 @@ class AdminControllerTest < Test::Unit::TestCase :attributes => { :class => /nodata/ } end + def test_projects + get :projects + assert_response :success + assert_template 'projects' + assert_not_nil assigns(:projects) + # active projects only + assert_nil assigns(:projects).detect {|u| !u.active?} + end + + def test_projects_with_name_filter + get :projects, :name => 'store', :status => '' + assert_response :success + assert_template 'projects' + projects = assigns(:projects) + assert_not_nil projects + assert_equal 1, projects.size + assert_equal 'OnlineStore', projects.first.name + end + def test_load_default_configuration_data delete_configuration_data post :default_configuration, :lang => 'fr' |