]> source.dussan.org Git - redmine.git/commitdiff
Add assertions for #6929 in MailHandler tests.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 20 Nov 2010 10:35:05 +0000 (10:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 20 Nov 2010 10:35:05 +0000 (10:35 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4416 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/mail_handler_test.rb

index 9fe35b62dfae35ea3028b8a6f8f03b1985ac8a8a..bad8655b753a693228d2548376a7efc23a532a26 100644 (file)
@@ -64,6 +64,7 @@ class MailHandlerTest < ActiveSupport::TestCase
     assert_equal Version.find_by_name('alpha'), issue.fixed_version
     assert_equal 2.5, issue.estimated_hours
     assert_equal 30, issue.done_ratio
+    assert_equal [issue.id, 1, 2], [issue.root_id, issue.lft, issue.rgt]
     # keywords should be removed from the email body
     assert !issue.description.match(/^Project:/i)
     assert !issue.description.match(/^Status:/i)
@@ -201,6 +202,7 @@ class MailHandlerTest < ActiveSupport::TestCase
         assert issue.is_a?(Issue)
         assert issue.author.anonymous?
         assert !issue.project.is_public?
+        assert_equal [issue.id, 1, 2], [issue.root_id, issue.lft, issue.rgt]
       end
     end
   end