summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-13 16:22:42 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-13 16:22:42 +0000
commitf3f1fad8de1d4c9b688b344b0cb1cb96bbfafe64 (patch)
tree984ebc11d7e2fcb74c23782cd52dfde287c06068 /test
parent940377314bc2a06897f31ab7935d6949aedab7fe (diff)
downloadredmine-f3f1fad8de1d4c9b688b344b0cb1cb96bbfafe64.tar.gz
redmine-f3f1fad8de1d4c9b688b344b0cb1cb96bbfafe64.zip
code cleanup: rubocop: fix Layout/SpaceAroundBlockParameters in test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18645 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/query_test.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index 9a8bb3c84..b1af2a06b 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -2024,7 +2024,7 @@ class QueryTest < ActiveSupport::TestCase
test "#available_filters should include users of visible projects in cross-project view" do
users = IssueQuery.new.available_filters["assigned_to_id"]
assert_not_nil users
- assert users[:values].map{|u|u[1]}.include?("3")
+ assert users[:values].map{|u| u[1]}.include?("3")
end
test "#available_filters should include users of subprojects" do
@@ -2032,17 +2032,16 @@ class QueryTest < ActiveSupport::TestCase
user2 = User.generate!
project = Project.find(1)
Member.create!(:principal => user1, :project => project.children.visible.first, :role_ids => [1])
-
users = IssueQuery.new(:project => project).available_filters["assigned_to_id"]
assert_not_nil users
- assert users[:values].map{|u|u[1]}.include?(user1.id.to_s)
- assert !users[:values].map{|u|u[1]}.include?(user2.id.to_s)
+ assert users[:values].map{|u| u[1]}.include?(user1.id.to_s)
+ assert !users[:values].map{|u| u[1]}.include?(user2.id.to_s)
end
test "#available_filters should include visible projects in cross-project view" do
projects = IssueQuery.new.available_filters["project_id"]
assert_not_nil projects
- assert projects[:values].map{|u|u[1]}.include?("1")
+ assert projects[:values].map{|u| u[1]}.include?("1")
end
test "#available_filters should include 'member_of_group' filter" do