From: Toshi MARUYAMA Date: Tue, 26 Nov 2019 06:30:32 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in test/unit/principal_test.rb X-Git-Tag: 4.2.0~1324 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e8b75e47f83229c0be03da76387901d98af1c1b1;p=redmine.git cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in test/unit/principal_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19316 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/principal_test.rb b/test/unit/principal_test.rb index 593a6156d..352a26166 100644 --- a/test/unit/principal_test.rb +++ b/test/unit/principal_test.rb @@ -93,28 +93,28 @@ class PrincipalTest < ActiveSupport::TestCase results = Principal.like('jsmi') assert results.any? - assert results.all? {|u| u.login.match(/jsmi/i) } + assert results.all? {|u| u.login.match(/jsmi/i)} end test "like scope should search firstname" do results = Principal.like('john') assert results.any? - assert results.all? {|u| u.firstname.match(/john/i) } + assert results.all? {|u| u.firstname.match(/john/i)} end test "like scope should search lastname" do results = Principal.like('smi') assert results.any? - assert results.all? {|u| u.lastname.match(/smi/i) } + assert results.all? {|u| u.lastname.match(/smi/i)} end test "like scope should search mail" do results = Principal.like('somenet') assert results.any? - assert results.all? {|u| u.mail.match(/somenet/i) } + assert results.all? {|u| u.mail.match(/somenet/i)} end test "like scope should search firstname and lastname" do