diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2d540c9..2517961 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-04-25 23:33:12 UTC using RuboCop version 1.50.2. # 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 @@ -294,16 +294,6 @@ RSpec/NamedSubject: RSpec/NestedGroups: Max: 5 -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: not_to, to_not -RSpec/NotToNot: - Exclude: - - 'spec/lib/dispatch-rider/handlers/base_spec.rb' - - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb' - - 'spec/lib/dispatch-rider/scheduled_job_spec.rb' - # Offense count: 2 RSpec/RepeatedExampleGroupDescription: Exclude: diff --git a/spec/lib/dispatch-rider/handlers/base_spec.rb b/spec/lib/dispatch-rider/handlers/base_spec.rb index ec48676..4528f2d 100644 --- a/spec/lib/dispatch-rider/handlers/base_spec.rb +++ b/spec/lib/dispatch-rider/handlers/base_spec.rb @@ -53,7 +53,7 @@ def retry_timeout example do expect { handler.do_process(message) - }.to_not raise_exception + }.not_to raise_exception end example do diff --git a/spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb b/spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb index bc72b1d..8e9c82b 100644 --- a/spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb +++ b/spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb @@ -25,7 +25,7 @@ it "deals with an empty configuration hash" do expect { subject.load_config(DispatchRider::Publisher::Configuration.new, publisher) - }.to_not raise_exception + }.not_to raise_exception end describe "notification_services parsing" do diff --git a/spec/lib/dispatch-rider/scheduled_job_spec.rb b/spec/lib/dispatch-rider/scheduled_job_spec.rb index 57aabce..f951118 100644 --- a/spec/lib/dispatch-rider/scheduled_job_spec.rb +++ b/spec/lib/dispatch-rider/scheduled_job_spec.rb @@ -21,7 +21,7 @@ subject(:due_jobs) { described_class.due } it { expect(due_jobs).to include due_job } - it { expect(due_jobs).to_not include later_job } + it { expect(due_jobs).not_to include later_job } end describe "due tomorrow" do