]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/HashSyntax (Don't mix styles in the same hash) (#36824...
authorGo MAEDA <maeda@farend.jp>
Sat, 26 Mar 2022 03:57:48 +0000 (03:57 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 26 Mar 2022 03:57:48 +0000 (03:57 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@21500 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/query_test.rb

index 4c07d9c39a96db7ebf6a0d0f8f19a2b1deb9d822..a2615a30a6d8f2fc2d879ae50c35f8d7d64bba93 100644 (file)
@@ -1240,12 +1240,12 @@ class QueryTest < ActiveSupport::TestCase
 
     filter_name = "fixed_version.status"
 
-    query = IssueQuery.new(:name => '_', project: Project.find(1))
+    query = IssueQuery.new(:name => '_', :project => Project.find(1))
     assert_include filter_name, query.available_filters.keys
     query.filters = {filter_name => {:operator => '=', :values => ['open']}}
     assert_include issue, find_issues_with_query(query)
 
-    query = IssueQuery.new(:name => '_', project: Project.find(1))
+    query = IssueQuery.new(:name => '_', :project => Project.find(1))
     query.filters = {filter_name => {:operator => '=', :values => ['closed']}}
     refute_includes find_issues_with_query(query), issue
   end