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
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user