diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2d540c9..e39a1ed 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 180` -# on 2023-04-20 23:33:11 UTC using RuboCop version 1.50.2. +# on 2023-05-23 23:33:02 UTC using RuboCop version 1.51.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -214,14 +214,6 @@ RSpec/FilePath: - 'spec/lib/dispatch-rider/subscriber_spec.rb' - 'spec/lib/dispatch-rider_spec.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit -RSpec/ImplicitSubject: - Exclude: - - 'spec/lib/dispatch-rider/scheduled_job_spec.rb' - # Offense count: 3 # Configuration parameters: Max. RSpec/IndexedLet: @@ -260,7 +252,7 @@ RSpec/MultipleExpectations: RSpec/MultipleMemoizedHelpers: Max: 12 -# Offense count: 173 +# Offense count: 174 # Configuration parameters: EnforcedStyle, IgnoreSharedExamples. # SupportedStyles: always, named_only RSpec/NamedSubject: @@ -287,6 +279,7 @@ RSpec/NamedSubject: - 'spec/lib/dispatch-rider/registrars/publishing_destination_spec.rb' - 'spec/lib/dispatch-rider/registrars/queue_service_spec.rb' - 'spec/lib/dispatch-rider/registrars/sns_channel_spec.rb' + - 'spec/lib/dispatch-rider/scheduled_job_spec.rb' - 'spec/lib/dispatch-rider/subscriber_spec.rb' # Offense count: 27 diff --git a/spec/lib/dispatch-rider/scheduled_job_spec.rb b/spec/lib/dispatch-rider/scheduled_job_spec.rb index 57aabce..87c5893 100644 --- a/spec/lib/dispatch-rider/scheduled_job_spec.rb +++ b/spec/lib/dispatch-rider/scheduled_job_spec.rb @@ -54,8 +54,8 @@ subject { described_class.find(due_job.id).message } it { - is_expected.to eq "subject" => "war_update", - "body" => { "enigma_machine" => "broken" } + expect(subject).to eq "subject" => "war_update", + "body" => { "enigma_machine" => "broken" } } end