diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b4f81f8..29ffa79 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -97,17 +97,6 @@ Style/BlockComments: Exclude: - 'spec/spec_helper.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. -# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces -# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object -# FunctionalMethods: let, let!, subject, watch -# AllowedMethods: lambda, proc, it -Style/BlockDelimiters: - Exclude: - - 'spec/lib/grape_logging/formatters/rails_spec.rb' - # Offense count: 3 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: MinBranchesCount. diff --git a/spec/lib/grape_logging/formatters/rails_spec.rb b/spec/lib/grape_logging/formatters/rails_spec.rb index 9686881..433d02a 100644 --- a/spec/lib/grape_logging/formatters/rails_spec.rb +++ b/spec/lib/grape_logging/formatters/rails_spec.rb @@ -6,7 +6,7 @@ describe GrapeLogging::Formatters::Rails do let(:datetime) { Time.new('2018', '03', '02', '10', '35', '04', '+13:00') } let(:exception_data) { ArgumentError.new('Message') } - let(:hash_data) { + let(:hash_data) do { status: 200, time: { @@ -18,7 +18,7 @@ describe GrapeLogging::Formatters::Rails do path: '/api/endpoint', host: 'localhost' } - } + end describe '#call' do context 'string data' do