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

.rubocop_todo.yml
test/unit/lib/redmine/field_format/version_field_format_test.rb

index 9ea4a96b497e75a2840721d45512ddccb52ad13c..13c071e7f1589a5fe2da4672080d099822b02ccf 100644 (file)
@@ -21,7 +21,6 @@ Layout/AlignArguments:
     - 'test/integration/api_test/wiki_pages_test.rb'
     - 'test/test_helper.rb'
     - 'test/unit/changeset_test.rb'
-    - 'test/unit/lib/redmine/field_format/version_field_format_test.rb'
     - 'test/unit/lib/redmine/wiki_formatting/html_parser_test.rb'
     - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
     - 'test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb'
index 34eae0a6da47cdf7ac8bab54910db9b501c00b06..d8b6ed55771d135c6bb0f204638d8589d9f5c258 100644 (file)
@@ -116,7 +116,9 @@ class Redmine::VersionFieldFormatTest < ActionView::TestCase
     query = Query.new(:project => project)
 
     full_name = "#{version.project} - #{version.name}"
-    assert_include [full_name, version.id.to_s, l(:version_status_locked)],
+    assert_include(
+      [full_name, version.id.to_s, l(:version_status_locked)],
       field.query_filter_options(query)[:values].call
+    )
   end
 end