diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-17 09:13:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-17 09:13:10 +0000 |
commit | 7642378bf425d828db6747dd49ec48a9cc15e129 (patch) | |
tree | ff8d5849e45e751b8812dc150c21e565a3f7380b | |
parent | 1ccdf38fdde16421905f8419bb83f0e923bd16bc (diff) | |
download | redmine-7642378bf425d828db6747dd49ec48a9cc15e129.tar.gz redmine-7642378bf425d828db6747dd49ec48a9cc15e129.zip |
Not testing nested set.
git-svn-id: http://svn.redmine.org/redmine/trunk@14682 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/mail_handler_test.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index 4a16eb7f9..23babb986 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -42,7 +42,6 @@ class MailHandlerTest < ActiveSupport::TestCase def test_add_issue_with_specific_overrides ActionMailer::Base.deliveries.clear - lft1 = new_issue_lft issue = submit_email('ticket_on_given_project.eml', :allow_override => ['status', 'start_date', 'due_date', 'assigned_to', 'fixed_version', 'estimated_hours', 'done_ratio'] ) @@ -61,7 +60,6 @@ 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, lft1, lft1 + 1], [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) @@ -75,7 +73,6 @@ class MailHandlerTest < ActiveSupport::TestCase def test_add_issue_with_all_overrides ActionMailer::Base.deliveries.clear - lft1 = new_issue_lft issue = submit_email('ticket_on_given_project.eml', :allow_override => 'all') assert issue.is_a?(Issue) assert !issue.new_record? @@ -338,7 +335,6 @@ class MailHandlerTest < ActiveSupport::TestCase end def test_add_issue_by_anonymous_user_on_private_project_without_permission_check - lft1 = new_issue_lft assert_no_difference 'User.count' do assert_difference 'Issue.count' do issue = submit_email( @@ -350,7 +346,6 @@ class MailHandlerTest < ActiveSupport::TestCase assert issue.is_a?(Issue) assert issue.author.anonymous? assert !issue.project.is_public? - assert_equal [issue.id, lft1, lft1 + 1], [issue.root_id, issue.lft, issue.rgt] end end end |