##// END OF EJS Templates
Adds a test for subtasks display....
Jean-Philippe Lang -
r7939:3fd504e54525
parent child
Show More
@@ -768,6 +768,15 class IssuesControllerTest < ActionController::TestCase
768 768 :descendant => { :tag => 'a', :content => /#4$/ }
769 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 780 def test_show_atom
772 781 get :show, :id => 2, :format => 'atom'
773 782 assert_response :success
General Comments 0
You need to be logged in to leave comments. Login now