From dd6adffa8bb93c1b370bbea970467ec3698d1e54 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 23 Nov 2019 09:03:44 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/field_format/version_field_format_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19186 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 1 - .../lib/redmine/field_format/version_field_format_test.rb | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 9ea4a96b4..13c071e7f 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/test/unit/lib/redmine/field_format/version_field_format_test.rb b/test/unit/lib/redmine/field_format/version_field_format_test.rb index 34eae0a6d..d8b6ed557 100644 --- a/test/unit/lib/redmine/field_format/version_field_format_test.rb +++ b/test/unit/lib/redmine/field_format/version_field_format_test.rb @@ -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 -- 2.39.5