1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-06 09:03:25 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-26 06:30:32 +00:00
parent e7927c9050
commit e8b75e47f8

View File

@ -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