diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-30 11:24:00 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-30 11:24:00 +0000 |
commit | bfdd9f7c295d539a9f8aeb22f965a620ea415224 (patch) | |
tree | 49e3795d74c6b92f5989b4ce986a3d4f102490f1 /test/unit | |
parent | 1699e37a0cad57f20ca1c8395314901dc59010f3 (diff) | |
download | redmine-bfdd9f7c295d539a9f8aeb22f965a620ea415224.tar.gz redmine-bfdd9f7c295d539a9f8aeb22f965a620ea415224.zip |
The descendant count in the issues delete confirmation message is wrong if issues share some descendants.
git-svn-id: http://svn.redmine.org/redmine/trunk@13818 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/helpers/issues_helper_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/helpers/issues_helper_test.rb b/test/unit/helpers/issues_helper_test.rb index cf681882c..393533fd3 100644 --- a/test/unit/helpers/issues_helper_test.rb +++ b/test/unit/helpers/issues_helper_test.rb @@ -68,6 +68,16 @@ class IssuesHelperTest < ActionView::TestCase issues_destroy_confirmation_message(Issue.find([1, 2])) end + def test_issues_destroy_confirmation_message_with_issues_that_share_descendants + root = Issue.generate! + child = Issue.generate!(:parent_issue_id => root.id) + Issue.generate!(:parent_issue_id => child.id) + + assert_equal l(:text_issues_destroy_confirmation) + "\n" + + l(:text_issues_destroy_descendants_confirmation, :count => 1), + issues_destroy_confirmation_message([root.reload, child.reload]) + end + test 'show_detail with no_html should show a changing attribute' do detail = JournalDetail.new(:property => 'attr', :old_value => '40', :value => '100', :prop_key => 'done_ratio') |