update rubocop
fix deprecated syntax
Use a guard clause instead of wrapping the code inside a conditional expression.
Incorrect indentation detected (column 8 instead of 6).
get the test passing again
Unused block argument - n

remove the sequence, it isn’t necessary
Unused method argument - viewer_id
Use next to skip iteration.