From fb11abeea709c43557a0db279f40ad286e835709 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 3 Oct 2024 00:24:39 +0000 Subject: [PATCH] sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow. --- ...spec@3.0.5.rbi => rubocop-rspec@3.1.0.rbi} | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-rspec@3.0.5.rbi => rubocop-rspec@3.1.0.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.0.5.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.1.0.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.0.5.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.1.0.rbi index a2fadae7fd..5219e8f1f2 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.0.5.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.1.0.rbi @@ -6290,6 +6290,35 @@ end # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_suffix.rb#24 RuboCop::Cop::RSpec::SpecFilePathSuffix::MSG = T.let(T.unsafe(nil), String) +# Do not use a string as `instance_double` constant. +# +# @example +# # bad +# instance_double('User', name: 'John') +# +# # good +# instance_double(User, name: 'John') +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#20 +class RuboCop::Cop::RSpec::StringAsInstanceDoubleConstant < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#39 + def autocorrect(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#31 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#27 + def stringified_instance_double_const?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#23 +RuboCop::Cop::RSpec::StringAsInstanceDoubleConstant::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#24 +RuboCop::Cop::RSpec::StringAsInstanceDoubleConstant::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks that message expectations do not have a configured response. # # @example