summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-05 14:08:03 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-05 14:08:03 +0000
commit1bd403015a4ca6f6c4262b3f306279e59599c6ad (patch)
treeaf82af35d868f9d2b5fe324d58760e1391453524 /test/unit
parentdcc9ea1c0a06fdd9a4c16e9635452c11a70f4f8c (diff)
downloadredmine-1bd403015a4ca6f6c4262b3f306279e59599c6ad.tar.gz
redmine-1bd403015a4ca6f6c4262b3f306279e59599c6ad.zip
cleanup: rubocop: fix Layout/AlignArguments in test/unit/mail_handler_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18901 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/mail_handler_test.rb27
1 files changed, 15 insertions, 12 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index 18d988e73..524b37072 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -44,9 +44,11 @@ class MailHandlerTest < ActiveSupport::TestCase
def test_add_issue_with_specific_overrides
issue = submit_email('ticket_on_given_project.eml',
- :allow_override => ['status', 'start_date', 'due_date', 'assigned_to',
- 'fixed_version', 'estimated_hours', 'done_ratio', 'parent_issue']
- )
+ :allow_override =>
+ ['status', 'start_date', 'due_date', 'assigned_to',
+ 'fixed_version', 'estimated_hours', 'done_ratio',
+ 'parent_issue']
+ )
assert issue.is_a?(Issue)
assert !issue.new_record?
issue.reload
@@ -243,8 +245,9 @@ class MailHandlerTest < ActiveSupport::TestCase
:possible_values => ['Linux', 'Windows', 'Mac OS X'])
issue = submit_email('ticket_with_custom_fields.eml',
- :issue => {:project => 'onlinestore'}, :allow_override => ['database', 'Searchable_field', 'OS']
- )
+ :issue => {:project => 'onlinestore'},
+ :allow_override => ['database', 'Searchable_field', 'OS']
+ )
assert issue.is_a?(Issue)
assert !issue.new_record?
issue.reload
@@ -260,12 +263,12 @@ class MailHandlerTest < ActiveSupport::TestCase
:field_format => 'version',
:is_for_all => true,
:tracker_ids => [1,2,3])
-
issue = submit_email('ticket_with_custom_fields.eml',
- :issue => {:project => 'ecookbook'}, :allow_override => ['affected version']
- ) do |email|
- email << "Affected version: 1.0\n"
- end
+ :issue => {:project => 'ecookbook'},
+ :allow_override => ['affected version']
+ ) do |email|
+ email << "Affected version: 1.0\n"
+ end
assert issue.is_a?(Issue)
assert !issue.new_record?
issue.reload
@@ -797,11 +800,11 @@ class MailHandlerTest < ActiveSupport::TestCase
with_settings :mail_from => addr do
assert_no_difference 'User.count' do
assert_equal false,
- submit_email(
+ submit_email(
'ticket_from_emission_address.eml',
:issue => {:project => 'ecookbook'},
:unknown_user => 'create'
- )
+ )
end
end
end