From: Go MAEDA Date: Thu, 22 Oct 2020 02:34:53 +0000 (+0000) Subject: Fix RuboCop offense Style/RedundantCapitalW due to r20154 (#34142). X-Git-Tag: 4.2.0~662 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eab671320aa28e7785d010df267d71c28f2af5fc;p=redmine.git Fix RuboCop offense Style/RedundantCapitalW due to r20154 (#34142). git-svn-id: http://svn.redmine.org/redmine/trunk@20155 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb index 7be1e799c..93f9af180 100644 --- a/test/unit/query_test.rb +++ b/test/unit/query_test.rb @@ -1953,7 +1953,7 @@ class QueryTest < ActiveSupport::TestCase count_by_group = q.result_count_by_group assert_kind_of Hash, count_by_group assert_equal %w(NilClass User), count_by_group.keys.collect {|k| k.class.name}.uniq.sort - assert_equal %W(Integer), count_by_group.values.collect {|k| k.class.name}.uniq + assert_equal %w(Integer), count_by_group.values.collect {|k| k.class.name}.uniq assert count_by_group.has_key?(User.find(3)) end @@ -1962,7 +1962,7 @@ class QueryTest < ActiveSupport::TestCase count_by_group = q.result_count_by_group assert_kind_of Hash, count_by_group assert_equal %w(NilClass String), count_by_group.keys.collect {|k| k.class.name}.uniq.sort - assert_equal %W(Integer), count_by_group.values.collect {|k| k.class.name}.uniq + assert_equal %w(Integer), count_by_group.values.collect {|k| k.class.name}.uniq assert count_by_group.has_key?('MySQL') end @@ -1971,7 +1971,7 @@ class QueryTest < ActiveSupport::TestCase count_by_group = q.result_count_by_group assert_kind_of Hash, count_by_group assert_equal %w(Date NilClass), count_by_group.keys.collect {|k| k.class.name}.uniq.sort - assert_equal %W(Integer), count_by_group.values.collect {|k| k.class.name}.uniq + assert_equal %w(Integer), count_by_group.values.collect {|k| k.class.name}.uniq end def test_issue_count_with_nil_group_only