AutoFix RuboCop Lint/SymbolConversion

This commit is contained in:
Pieter Oliver 2025-07-08 17:28:54 +01:00
parent e5b6b00c47
commit f3ce2561a2
No known key found for this signature in database
GPG key ID: AAC5BA1478582D1F
2 changed files with 1 additions and 9 deletions

View file

@ -41,14 +41,6 @@ Lint/MissingSuper:
Exclude:
- 'lib/grape_logging/loggers/filter_parameters.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, consistent
Lint/SymbolConversion:
Exclude:
- 'spec/lib/grape_logging/loggers/response_spec.rb'
# Offense count: 3
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:

View file

@ -4,7 +4,7 @@ require 'ostruct'
describe GrapeLogging::Loggers::Response do
context 'with a parseable JSON body' do
let(:response) do
OpenStruct.new(body: [{ 'one': 'two', 'three': { 'four': 5 } }])
OpenStruct.new(body: [{ one: 'two', three: { four: 5 } }])
end
it 'returns an array of parsed JSON objects' do