diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 70759d1465..22634cb781 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -187,15 +187,6 @@ RSpec/ExpectActual: Exclude: - 'swift/spec/dependabot/swift/native_requirement_spec.rb' -# Offense count: 2 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: method_call, block -RSpec/ExpectChange: - Exclude: - - 'bundler/spec/dependabot/bundler/update_checker_spec.rb' - - 'common/spec/dependabot/file_updaters/base_spec.rb' - # Offense count: 3 RSpec/ExpectInHook: Exclude: diff --git a/bundler/spec/dependabot/bundler/update_checker_spec.rb b/bundler/spec/dependabot/bundler/update_checker_spec.rb index 68b1c88852..ba37a37430 100644 --- a/bundler/spec/dependabot/bundler/update_checker_spec.rb +++ b/bundler/spec/dependabot/bundler/update_checker_spec.rb @@ -696,7 +696,7 @@ it "doesn't persist any temporary changes to Bundler's root" do expect { checker.latest_resolvable_version } - .to_not(change { ::Bundler.root }) + .to_not(change(::Bundler, :root)) end context "that requires other files" do diff --git a/common/spec/dependabot/file_updaters/base_spec.rb b/common/spec/dependabot/file_updaters/base_spec.rb index fbdd022cd3..570b4c12b3 100644 --- a/common/spec/dependabot/file_updaters/base_spec.rb +++ b/common/spec/dependabot/file_updaters/base_spec.rb @@ -90,6 +90,6 @@ def check_required_files its(:content) { is_expected.to eq("codes") } its(:directory) { is_expected.to eq(file.directory) } - specify { expect { updated_file }.to_not(change { file.content }) } + specify { expect { updated_file }.to_not(change(file, :content)) } end end