summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-25 11:18:59 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-25 11:18:59 +0000
commit83d5633a5f772bfbae51ad2c0e3e31d17cbe6bc1 (patch)
tree3b955b06159c0f4bd93155955a08e67e2c4ed6c0
parent97fb2876d57e6789aa2ca41400809e6ab9a3155d (diff)
downloadredmine-83d5633a5f772bfbae51ad2c0e3e31d17cbe6bc1.tar.gz
redmine-83d5633a5f772bfbae51ad2c0e3e31d17cbe6bc1.zip
code cleanup: rubocop: fix Style/TrailingCommaInArguments in test/unit/issue_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18529 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop_todo.yml7
-rw-r--r--test/unit/issue_test.rb2
2 files changed, 1 insertions, 8 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index f5df4f394..72acf4841 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -1581,13 +1581,6 @@ Style/TernaryParentheses:
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
-Style/TrailingCommaInArguments:
- Exclude:
- - 'test/unit/issue_test.rb'
-
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyleForMultiline.
-# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
Exclude:
- 'app/models/time_entry_query.rb'
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 2d874138f..5ba7a6d4c 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -1419,7 +1419,7 @@ class IssueTest < ActiveSupport::TestCase
end
def test_copy_should_clear_subtasks_target_version_if_locked_or_closed
- version = Version.new(:project => Project.find(1), :name => '2.1',)
+ version = Version.new(:project => Project.find(1), :name => '2.1')
version.save!
parent = Issue.generate!