mirror of
https://github.com/redmine/redmine.git
synced 2026-03-06 12:31:40 +01:00
Do not show inactive document categories where not necessary (#8573).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6071 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -45,6 +45,10 @@ class DocumentsControllerTest < ActionController::TestCase
|
||||
assert_tag :select, :attributes => {:name => 'document[category_id]'},
|
||||
:child => {:tag => 'option', :attributes => {:selected => 'selected'},
|
||||
:content => 'Technical documentation'}
|
||||
|
||||
assert ! DocumentCategory.find(16).active?
|
||||
assert_no_tag :option, :attributes => {:value => '16'},
|
||||
:parent => {:tag => 'select', :attributes => {:id => 'document_category_id'} }
|
||||
end
|
||||
|
||||
def test_index_with_long_description
|
||||
|
||||
Reference in New Issue
Block a user