remove trailing white-spaces from test/unit/mail_handler_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6927 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1b4ae22b02
commit
350d871028
|
@ -109,7 +109,7 @@ class MailHandlerTest < ActiveSupport::TestCase
|
||||||
assert_equal 'Urgent', issue.priority.to_s
|
assert_equal 'Urgent', issue.priority.to_s
|
||||||
assert issue.description.include?('Lorem ipsum dolor sit amet, consectetuer adipiscing elit.')
|
assert issue.description.include?('Lorem ipsum dolor sit amet, consectetuer adipiscing elit.')
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_add_issue_with_group_assignment
|
def test_add_issue_with_group_assignment
|
||||||
with_settings :issue_group_assignment => '1' do
|
with_settings :issue_group_assignment => '1' do
|
||||||
issue = submit_email('ticket_on_given_project.eml') do |email|
|
issue = submit_email('ticket_on_given_project.eml') do |email|
|
||||||
|
@ -290,12 +290,12 @@ class MailHandlerTest < ActiveSupport::TestCase
|
||||||
assert_kind_of Issue, issue
|
assert_kind_of Issue, issue
|
||||||
assert_equal tracker, issue.tracker
|
assert_equal tracker, issue.tracker
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_add_issue_from_apple_mail
|
def test_add_issue_from_apple_mail
|
||||||
issue = submit_email('apple_mail_with_attachment.eml', :issue => {:project => 'ecookbook'})
|
issue = submit_email('apple_mail_with_attachment.eml', :issue => {:project => 'ecookbook'})
|
||||||
assert_kind_of Issue, issue
|
assert_kind_of Issue, issue
|
||||||
assert_equal 1, issue.attachments.size
|
assert_equal 1, issue.attachments.size
|
||||||
|
|
||||||
attachment = issue.attachments.first
|
attachment = issue.attachments.first
|
||||||
assert_equal 'paella.jpg', attachment.filename
|
assert_equal 'paella.jpg', attachment.filename
|
||||||
assert_equal 10790, attachment.filesize
|
assert_equal 10790, attachment.filesize
|
||||||
|
@ -344,7 +344,7 @@ class MailHandlerTest < ActiveSupport::TestCase
|
||||||
assert !journal.notes.match(/^Status:/i)
|
assert !journal.notes.match(/^Status:/i)
|
||||||
assert !journal.notes.match(/^Start Date:/i)
|
assert !journal.notes.match(/^Start Date:/i)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_update_issue_with_attachment
|
def test_update_issue_with_attachment
|
||||||
assert_difference 'Journal.count' do
|
assert_difference 'Journal.count' do
|
||||||
assert_difference 'JournalDetail.count' do
|
assert_difference 'JournalDetail.count' do
|
||||||
|
@ -360,7 +360,7 @@ class MailHandlerTest < ActiveSupport::TestCase
|
||||||
journal = Journal.first(:order => 'id DESC')
|
journal = Journal.first(:order => 'id DESC')
|
||||||
assert_equal Issue.find(2), journal.journalized
|
assert_equal Issue.find(2), journal.journalized
|
||||||
assert_equal 1, journal.details.size
|
assert_equal 1, journal.details.size
|
||||||
|
|
||||||
detail = journal.details.first
|
detail = journal.details.first
|
||||||
assert_equal 'attachment', detail.property
|
assert_equal 'attachment', detail.property
|
||||||
assert_equal 'Paella.jpg', detail.value
|
assert_equal 'Paella.jpg', detail.value
|
||||||
|
|
Loading…
Reference in New Issue