@@ -768,6 +768,15 class IssuesControllerTest < ActionController::TestCase | |||||
768 | :descendant => { :tag => 'a', :content => /#4$/ } |
|
768 | :descendant => { :tag => 'a', :content => /#4$/ } | |
769 | end |
|
769 | end | |
770 |
|
770 | |||
|
771 | def test_show_should_list_subtasks | |||
|
772 | Issue.generate!(:project_id => 1, :author_id => 1, :tracker_id => 1, :parent_issue_id => 1, :subject => 'Child Issue') | |||
|
773 | ||||
|
774 | get :show, :id => 1 | |||
|
775 | assert_response :success | |||
|
776 | assert_tag 'div', :attributes => {:id => 'issue_tree'}, | |||
|
777 | :descendant => {:tag => 'td', :content => /Child Issue/, :class => /subject/} | |||
|
778 | end | |||
|
779 | ||||
771 | def test_show_atom |
|
780 | def test_show_atom | |
772 | get :show, :id => 2, :format => 'atom' |
|
781 | get :show, :id => 2, :format => 'atom' | |
773 | assert_response :success |
|
782 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now