Fix rubocop warning 'TrailingComma' in sample_attr_spec.rb