From 511abef657875474496efb612bb6b7424a22d5d7 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 26 Mar 2022 03:57:48 +0000 Subject: [PATCH] Fix RuboCop offense Style/HashSyntax (Don't mix styles in the same hash) (#36824, #30924). git-svn-id: https://svn.redmine.org/redmine/trunk@21500 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/query_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb index 4c07d9c39..a2615a30a 100644 --- a/test/unit/query_test.rb +++ b/test/unit/query_test.rb @@ -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 -- 2.39.5