refactor: spec style to pass rubocop