From 0ee7ba1665d603e697759cc6ecf2a8c75884edd5 Mon Sep 17 00:00:00 2001 From: garryhurleyjr Date: Wed, 12 Jun 2024 11:09:05 -0400 Subject: [PATCH] enabled RSpec VerifiedDoubeReference rule --- .rubocop_todo.yml | 8 -------- .../operations/refresh_group_update_pull_request_spec.rb | 6 +++--- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index c57f3be649..c37fc4df45 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -259,14 +259,6 @@ RSpec/UnspecifiedException: Exclude: - 'updater/spec/dependabot/job_spec.rb' -# Offense count: 3 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: constant, string -RSpec/VerifiedDoubleReference: - Exclude: - - 'updater/spec/dependabot/updater/operations/refresh_group_update_pull_request_spec.rb' - # Offense count: 26 # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames. RSpec/VerifiedDoubles: diff --git a/updater/spec/dependabot/updater/operations/refresh_group_update_pull_request_spec.rb b/updater/spec/dependabot/updater/operations/refresh_group_update_pull_request_spec.rb index bb06c2f77d..3825770be6 100644 --- a/updater/spec/dependabot/updater/operations/refresh_group_update_pull_request_spec.rb +++ b/updater/spec/dependabot/updater/operations/refresh_group_update_pull_request_spec.rb @@ -272,15 +272,15 @@ end let(:group) do - instance_double("Dependabot::DependencyGroup", rules: { "update-types" => update_types }) + instance_double(Dependabot::DependencyGroup, rules: { "update-types" => update_types }) end let(:dependency) do - instance_double("Dependabot::Dependency", version: current_version) + instance_double(Dependabot::Dependency, version: current_version) end let(:checker) do - instance_double("Dependabot::UpdateCheckers::Base", latest_version: latest_version) + instance_double(Dependabot::UpdateCheckers::Base, latest_version: latest_version) end before do