AutoFix RuboCop Style/QuotedSymbols

This commit is contained in:
Pieter Oliver 2025-07-08 17:19:40 +01:00
parent 3a71be798e
commit 6f0ffc2fda
No known key found for this signature in database
GPG key ID: AAC5BA1478582D1F
2 changed files with 1 additions and 9 deletions

View file

@ -216,14 +216,6 @@ Style/PercentLiteralDelimiters:
- 'grape_logging.gemspec'
- 'lib/grape_logging/loggers/filter_parameters.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: same_as_string_literals, single_quotes, double_quotes
Style/QuotedSymbols:
Exclude:
- 'spec/lib/grape_logging/loggers/response_spec.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.

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