]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/AlignArguments in test/unit/changeset_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 15:10:47 +0000 (15:10 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 15:10:47 +0000 (15:10 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19210 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/unit/changeset_test.rb

index 8e909740486f875ffa05e6a6350b335ec486639c..af6042e3dab872b3dbad419e2ff54c92fc36daac 100644 (file)
@@ -20,7 +20,6 @@ Layout/AlignArguments:
     - 'test/integration/api_test/projects_test.rb'
     - 'test/integration/api_test/wiki_pages_test.rb'
     - 'test/test_helper.rb'
-    - 'test/unit/changeset_test.rb'
     - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
     - 'test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb'
     - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
index 3c44b587847b0f9fd5cf81ff848c9274b3fbd094..74c001cdbe6bdfb2bacaaec2b580de037220245b 100644 (file)
@@ -108,12 +108,16 @@ class ChangesetTest < ActiveSupport::TestCase
       assert_equal 1, time.issue_id
       assert_equal 1, time.project_id
       assert_equal 2, time.user_id
-      assert_equal expected_hours, time.hours,
-          "@#{syntax} should be logged as #{expected_hours} hours but was #{time.hours}"
+      assert_equal(
+        expected_hours, time.hours,
+        "@#{syntax} should be logged as #{expected_hours} hours but was #{time.hours}"
+      )
       assert_equal Date.yesterday, time.spent_on
       assert time.activity.is_default?
-      assert time.comments.include?('r520'),
-            "r520 was expected in time_entry comments: #{time.comments}"
+      assert(
+        time.comments.include?('r520'),
+        "r520 was expected in time_entry comments: #{time.comments}"
+      )
     end
   end