]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/RedundantCapitalW due to r20154 (#34142).
authorGo MAEDA <maeda@farend.jp>
Thu, 22 Oct 2020 02:34:53 +0000 (02:34 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 22 Oct 2020 02:34:53 +0000 (02:34 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20155 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/query_test.rb

index 7be1e799c054cab4139ef71f731f21f5c0b4ed60..93f9af18062afc504a7264338b6ac82c3425bbe7 100644 (file)
@@ -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