summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-19 12:24:58 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-19 12:24:58 +0000
commit5b18b24309570850d50efb030773974e6a8b5cfd (patch)
tree1e68be65884e044659d6ac670f0b85e17214be96
parent6319efe95cc1b3746c5c3b57b692632f9c8a1228 (diff)
downloadredmine-5b18b24309570850d50efb030773974e6a8b5cfd.tar.gz
redmine-5b18b24309570850d50efb030773974e6a8b5cfd.zip
code cleanup: rubocop: fix Layout/SpaceBeforeComma in lib/redmine/utils.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18769 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--test/unit/time_entry_test.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 68d53def7..48dd6f753 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -284,7 +284,6 @@ Layout/SpaceBeforeComma:
- 'test/helpers/application_helper_test.rb'
- 'test/mocks/open_id_authentication_mock.rb'
- 'test/unit/lib/redmine/helpers/calendar_test.rb'
- - 'test/unit/time_entry_test.rb'
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
diff --git a/test/unit/time_entry_test.rb b/test/unit/time_entry_test.rb
index e634fe04e..1feb4b9e5 100644
--- a/test/unit/time_entry_test.rb
+++ b/test/unit/time_entry_test.rb
@@ -229,7 +229,7 @@ class TimeEntryTest < ActiveSupport::TestCase
def test_create_with_required_issue_id_and_comment_should_be_validated
set_language_if_valid 'en'
- with_settings :timelog_required_fields => ['issue_id' , 'comments'] do
+ with_settings :timelog_required_fields => ['issue_id', 'comments'] do
entry = TimeEntry.new(:project => Project.find(1), :spent_on => Date.today, :author => User.find(1), :user => User.find(1), :activity => TimeEntryActivity.first, :hours => 1)
assert !entry.save