Add and apply ArrayCoercion rubocop rule
This rule was added in Rubocop 0.88.0.
This commit is contained in:
@@ -17,7 +17,7 @@ section "Creating Users" do
|
||||
def unique_document_number
|
||||
@document_number ||= 12345678
|
||||
@document_number += 1
|
||||
"#{@document_number}#{[*"A".."Z"].sample}"
|
||||
"#{@document_number}#{("A".."Z").to_a.sample}"
|
||||
end
|
||||
|
||||
admin = create_user("admin@consul.dev", "admin")
|
||||
|
||||
Reference in New Issue
Block a user