Fix rubocop warning 'TrailingComma' in hash_to_attributes_spec