summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-17 09:13:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-17 09:13:10 +0000
commit7642378bf425d828db6747dd49ec48a9cc15e129 (patch)
treeff8d5849e45e751b8812dc150c21e565a3f7380b
parent1ccdf38fdde16421905f8419bb83f0e923bd16bc (diff)
downloadredmine-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.rb5
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