mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-27 14:57:40 +00:00
AutoFix RuboCop Lint/SymbolConversion
This commit is contained in:
parent
e5b6b00c47
commit
f3ce2561a2
2 changed files with 1 additions and 9 deletions
|
|
@ -41,14 +41,6 @@ Lint/MissingSuper:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/grape_logging/loggers/filter_parameters.rb'
|
- '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
|
# Offense count: 3
|
||||||
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
||||||
Metrics/AbcSize:
|
Metrics/AbcSize:
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ require 'ostruct'
|
||||||
describe GrapeLogging::Loggers::Response do
|
describe GrapeLogging::Loggers::Response do
|
||||||
context 'with a parseable JSON body' do
|
context 'with a parseable JSON body' do
|
||||||
let(:response) do
|
let(:response) do
|
||||||
OpenStruct.new(body: [{ 'one': 'two', 'three': { 'four': 5 } }])
|
OpenStruct.new(body: [{ one: 'two', three: { four: 5 } }])
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns an array of parsed JSON objects' do
|
it 'returns an array of parsed JSON objects' do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue