summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-03 18:20:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-03 18:20:26 +0000
commit3fd504e5452520d71e47d6b5485760340e16982d (patch)
treee30eb964366ecf99fb10852234636a617840c009 /test
parent997995397e503d365a663ef53d800ac8da1ef962 (diff)
downloadredmine-3fd504e5452520d71e47d6b5485760340e16982d.tar.gz
redmine-3fd504e5452520d71e47d6b5485760340e16982d.zip
Adds a test for subtasks display.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8059 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issues_controller_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 3a2ce90cc..a847e9982 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -768,6 +768,15 @@ class IssuesControllerTest < ActionController::TestCase
:descendant => { :tag => 'a', :content => /#4$/ }
end
+ def test_show_should_list_subtasks
+ Issue.generate!(:project_id => 1, :author_id => 1, :tracker_id => 1, :parent_issue_id => 1, :subject => 'Child Issue')
+
+ get :show, :id => 1
+ assert_response :success
+ assert_tag 'div', :attributes => {:id => 'issue_tree'},
+ :descendant => {:tag => 'td', :content => /Child Issue/, :class => /subject/}
+ end
+
def test_show_atom
get :show, :id => 2, :format => 'atom'
assert_response :success