summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-30 14:24:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-30 14:24:33 +0000
commitf909a8c006d01e8b500ef8ffc9963bdf81662faf (patch)
treef66a4a8b49173fd750b6e7d177e7475876942795 /test/functional
parent399223daba6f993775fe783828b6612747e7a89f (diff)
downloadredmine-f909a8c006d01e8b500ef8ffc9963bdf81662faf.tar.gz
redmine-f909a8c006d01e8b500ef8ffc9963bdf81662faf.zip
Issues by Category should show tasks without category (#8106).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10771 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/versions_controller_test.rb15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index c6906ca5b..8379585d5 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -22,7 +22,7 @@ require 'versions_controller'
class VersionsController; def rescue_action(e) raise e end; end
class VersionsControllerTest < ActionController::TestCase
- fixtures :projects, :versions, :issues, :users, :roles, :members, :member_roles, :enabled_modules, :issue_statuses
+ fixtures :projects, :versions, :issues, :users, :roles, :members, :member_roles, :enabled_modules, :issue_statuses, :issue_categories
def setup
@controller = VersionsController.new
@@ -103,6 +103,19 @@ class VersionsControllerTest < ActionController::TestCase
assert_tag :tag => 'h2', :content => /1.0/
end
+ def test_show_should_display_nil_counts
+ with_settings :default_language => 'en' do
+ get :show, :id => 2, :status_by => 'category'
+ assert_response :success
+ assert_select 'div#status_by' do
+ assert_select 'select[name=status_by]' do
+ assert_select 'option[value=category][selected=selected]'
+ end
+ assert_select 'a', :text => 'none'
+ end
+ end
+ end
+
def test_new
@request.session[:user_id] = 2
get :new, :project_id => '1'