Class: RSpec::Core::ExampleGroup Private

Inherits:
Object
  • Object
show all
Includes:
CopHelper, Matchers, Mocks::ExampleMethods, SharedContext, RuboCop::RSpec::ExpectOffense
Defined in:
sorbet/rbi/shims/rspec.rbi

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Methods included from CopHelper

#autocorrect_source, #autocorrect_source_file, #inspect_source, #parse_source

Instance Method Details

#args_for_subcommand(subcommand = T.unsafe(nil), *named, **options) ⇒ Test::Helper::Subcommand::Args

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

These methods are mixed into specs via config.include(Test::Helper::Subcommand) in test/spec_helper.rb; declare them here so Sorbet can resolve them in typed spec files.

Parameters:

  • subcommand (String, Symbol, nil) (defaults to: T.unsafe(nil))
  • named (T.untyped)
  • options (T.untyped)

Returns:

  • (Test::Helper::Subcommand::Args)


89
# File 'sorbet/rbi/shims/rspec.rbi', line 89

def args_for_subcommand(subcommand = T.unsafe(nil), *named, **options); end

#brew(*args) ⇒ Process::Status

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

These methods are added to specs in test/support/helper/spec/shared_context/integration_test.rb; declare them here so Sorbet can resolve them in typed spec files.

Parameters:

  • args (T.untyped)

Returns:

  • (Process::Status)


14
# File 'sorbet/rbi/shims/rspec.rbi', line 14

def brew(*args); end

#brew_sh(*args) ⇒ Process::Status

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • args (T.untyped)

Returns:

  • (Process::Status)


17
# File 'sorbet/rbi/shims/rspec.rbi', line 17

def brew_sh(*args); end

#bundle_path(name) ⇒ MachOShim

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:



116
# File 'sorbet/rbi/shims/rspec.rbi', line 116

def bundle_path(name); end

#bundle_subcommand_context(subcommand, global: false, file: nil, no_upgrade: false, verbose: false, force: false, ask: false, jobs: 1, zap: false, no_type_args: true) ⇒ Homebrew::Cmd::Bundle::SubcommandContext

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • subcommand (String, Symbol)
  • global (Boolean) (defaults to: false)
  • file (String, nil) (defaults to: nil)
  • no_upgrade (Boolean) (defaults to: false)
  • verbose (Boolean) (defaults to: false)
  • force (Boolean) (defaults to: false)
  • ask (Boolean) (defaults to: false)
  • jobs (Integer) (defaults to: 1)
  • zap (Boolean) (defaults to: false)
  • no_type_args (Boolean) (defaults to: true)

Returns:



105
106
107
# File 'sorbet/rbi/shims/rspec.rbi', line 105

def bundle_subcommand_context(subcommand, global: false, file: nil, no_upgrade: false, verbose: false,
                              force: false, ask: false, jobs: 1, zap: false, no_type_args: true)
end

#cask_path(name) ⇒ Pathname

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:



119
# File 'sorbet/rbi/shims/rspec.rbi', line 119

def cask_path(name); end

#dylib_path(name) ⇒ MachOShim

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

These methods are mixed into specs via config.include(Test::Helper::Fixtures) in test/spec_helper.rb; declare them here so Sorbet can resolve them in typed spec files.

Parameters:

Returns:



113
# File 'sorbet/rbi/shims/rspec.rbi', line 113

def dylib_path(name); end

#fixture(name) ⇒ Pathname

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:



134
# File 'sorbet/rbi/shims/rspec.rbi', line 134

def fixture(name); end

#formula(name = T.unsafe(nil), path: nil, spec: :stable, alias_path: nil, tap: nil, &block) ⇒ ::Formula

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

These methods are mixed into specs via config.include(Test::Helper::{Formula,Cask}) in test/spec_helper.rb; declare them here so Sorbet can resolve them in typed spec files.

Parameters:

  • name (String) (defaults to: T.unsafe(nil))
  • path (Pathname, nil) (defaults to: nil)
  • spec (Symbol) (defaults to: :stable)
  • alias_path (Pathname, nil) (defaults to: nil)
  • tap (Tap, nil) (defaults to: nil)
  • block (T.proc.bind(Formula).void, nil)

Returns:



53
# File 'sorbet/rbi/shims/rspec.rbi', line 53

def formula(name = T.unsafe(nil), path: nil, spec: :stable, alias_path: nil, tap: nil, &block); end

#install_and_rename_coretap_formula(old_name, new_name) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:



39
# File 'sorbet/rbi/shims/rspec.rbi', line 39

def install_and_rename_coretap_formula(old_name, new_name); end

#install_test_formula(name, content = T.unsafe(nil), build_bottle: false) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:

  • name (String)
  • content (String, nil) (defaults to: T.unsafe(nil))
  • build_bottle (Boolean) (defaults to: false)


36
# File 'sorbet/rbi/shims/rspec.rbi', line 36

def install_test_formula(name, content = T.unsafe(nil), build_bottle: false); end

#mktmpdir(prefix_suffix = T.unsafe(nil), &block) ⇒ Pathname

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

mktmpdir is mixed into specs via config.include(Test::Helper::MkTmpDir) in test/spec_helper.rb; declare it here so Sorbet can resolve it in typed spec files.

Parameters:

Returns:



77
# File 'sorbet/rbi/shims/rspec.rbi', line 77

def mktmpdir(prefix_suffix = T.unsafe(nil), &block); end

#patch_fixture(name) ⇒ Pathname

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:



128
# File 'sorbet/rbi/shims/rspec.rbi', line 128

def patch_fixture(name); end

#patch_fixture_sha256(name) ⇒ String

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:



131
# File 'sorbet/rbi/shims/rspec.rbi', line 131

def patch_fixture_sha256(name); end

#setup_test_formula(name, content = T.unsafe(nil), tap: T.unsafe(nil), bottle_block: T.unsafe(nil), tab_attributes: T.unsafe(nil)) ⇒ Pathname

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • name (String)
  • content (String, nil) (defaults to: T.unsafe(nil))
  • tap (Tap) (defaults to: T.unsafe(nil))
  • bottle_block (String, nil) (defaults to: T.unsafe(nil))
  • tab_attributes (Hash{T.untyped => T.untyped}, nil) (defaults to: T.unsafe(nil))

Returns:



28
29
30
# File 'sorbet/rbi/shims/rspec.rbi', line 28

def setup_test_formula(name, content = T.unsafe(nil), tap: T.unsafe(nil), bottle_block: T.unsafe(nil),
                       tab_attributes: T.unsafe(nil))
end

#setup_test_tapPathname

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



33
# File 'sorbet/rbi/shims/rspec.rbi', line 33

def setup_test_tap; end

#stub_cask_loader(cask, ref = cask.token, call_original: false) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:

  • cask (Cask::Cask)
  • ref (String, nil) (defaults to: cask.token)
  • call_original (Boolean) (defaults to: false)


59
# File 'sorbet/rbi/shims/rspec.rbi', line 59

def stub_cask_loader(cask, ref = cask.token, call_original: false); end

#stub_formula_loader(formula, ref = formula.full_name, call_original: false) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:

  • formula (::Formula)
  • ref (String, nil) (defaults to: formula.full_name)
  • call_original (Boolean) (defaults to: false)


56
# File 'sorbet/rbi/shims/rspec.rbi', line 56

def stub_formula_loader(formula, ref = formula.full_name, call_original: false); end

#tarball_fixture(name) ⇒ Pathname

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:



122
# File 'sorbet/rbi/shims/rspec.rbi', line 122

def tarball_fixture(name); end

#tarball_fixture_sha256(name) ⇒ String

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:



125
# File 'sorbet/rbi/shims/rspec.rbi', line 125

def tarball_fixture_sha256(name); end

#uninstall_test_formula(name) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:



42
# File 'sorbet/rbi/shims/rspec.rbi', line 42

def uninstall_test_formula(name); end

#url(val = "", specs = {}) ⇒ String

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

formula(...) { ... } helper blocks can be inferred as example group contexts in typed specs; declare Formula DSL methods to satisfy static analysis.

Parameters:

  • val (String) (defaults to: "")
  • specs (Hash{Symbol => T.anything}) (defaults to: {})

Returns:



140
# File 'sorbet/rbi/shims/rspec.rbi', line 140

def url(val = "", specs = {}); end