@@ -777,6 +777,17 class IssuesControllerTest < ActionController::TestCase | |||||
777 | :descendant => {:tag => 'td', :content => /Child Issue/, :attributes => {:class => /subject/}} |
|
777 | :descendant => {:tag => 'td', :content => /Child Issue/, :attributes => {:class => /subject/}} | |
778 | end |
|
778 | end | |
779 |
|
779 | |||
|
780 | def test_show_should_list_parents | |||
|
781 | issue = Issue.generate!(:project_id => 1, :author_id => 1, :tracker_id => 1, :parent_issue_id => 1, :subject => 'Child Issue') | |||
|
782 | ||||
|
783 | get :show, :id => issue.id | |||
|
784 | assert_response :success | |||
|
785 | assert_tag 'div', :attributes => {:class => 'subject'}, | |||
|
786 | :descendant => {:tag => 'h3', :content => 'Child Issue'} | |||
|
787 | assert_tag 'div', :attributes => {:class => 'subject'}, | |||
|
788 | :descendant => {:tag => 'a', :attributes => {:href => '/issues/1'}} | |||
|
789 | end | |||
|
790 | ||||
780 | def test_show_atom |
|
791 | def test_show_atom | |
781 | get :show, :id => 2, :format => 'atom' |
|
792 | get :show, :id => 2, :format => 'atom' | |
782 | assert_response :success |
|
793 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now