##// END OF EJS Templates
Add assertions for #6929 in MailHandler tests....
Jean-Philippe Lang -
r4302:1f237388bddd
parent child
Show More
@@ -64,6 +64,7 class MailHandlerTest < ActiveSupport::TestCase
64 assert_equal Version.find_by_name('alpha'), issue.fixed_version
64 assert_equal Version.find_by_name('alpha'), issue.fixed_version
65 assert_equal 2.5, issue.estimated_hours
65 assert_equal 2.5, issue.estimated_hours
66 assert_equal 30, issue.done_ratio
66 assert_equal 30, issue.done_ratio
67 assert_equal [issue.id, 1, 2], [issue.root_id, issue.lft, issue.rgt]
67 # keywords should be removed from the email body
68 # keywords should be removed from the email body
68 assert !issue.description.match(/^Project:/i)
69 assert !issue.description.match(/^Project:/i)
69 assert !issue.description.match(/^Status:/i)
70 assert !issue.description.match(/^Status:/i)
@@ -201,6 +202,7 class MailHandlerTest < ActiveSupport::TestCase
201 assert issue.is_a?(Issue)
202 assert issue.is_a?(Issue)
202 assert issue.author.anonymous?
203 assert issue.author.anonymous?
203 assert !issue.project.is_public?
204 assert !issue.project.is_public?
205 assert_equal [issue.id, 1, 2], [issue.root_id, issue.lft, issue.rgt]
204 end
206 end
205 end
207 end
206 end
208 end
General Comments 0
You need to be logged in to leave comments. Login now