Class: RSpec::Core::ExampleGroup Private
- 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
-
#args_for_subcommand(subcommand = T.unsafe(nil), *named, **options) ⇒ Test::Helper::Subcommand::Args
private
These methods are mixed into specs via
config.include(Test::Helper::Subcommand)intest/spec_helper.rb; declare them here so Sorbet can resolve them in typed spec files. -
#brew(*args) ⇒ Process::Status
private
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. - #brew_sh(*args) ⇒ Process::Status private
- #bundle_path(name) ⇒ MachOShim private
- #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 private
- #cask_path(name) ⇒ Pathname private
-
#dylib_path(name) ⇒ MachOShim
private
These methods are mixed into specs via
config.include(Test::Helper::Fixtures)intest/spec_helper.rb; declare them here so Sorbet can resolve them in typed spec files. - #fixture(name) ⇒ Pathname private
-
#formula(name = T.unsafe(nil), path: nil, spec: :stable, alias_path: nil, tap: nil, &block) ⇒ ::Formula
private
These methods are mixed into specs via
config.include(Test::Helper::{Formula,Cask})intest/spec_helper.rb; declare them here so Sorbet can resolve them in typed spec files. - #install_and_rename_coretap_formula(old_name, new_name) ⇒ void private
- #install_test_formula(name, content = T.unsafe(nil), build_bottle: false) ⇒ void private
-
#mktmpdir(prefix_suffix = T.unsafe(nil), &block) ⇒ Pathname
private
mktmpdiris mixed into specs viaconfig.include(Test::Helper::MkTmpDir)intest/spec_helper.rb; declare it here so Sorbet can resolve it in typed spec files. - #patch_fixture(name) ⇒ Pathname private
- #patch_fixture_sha256(name) ⇒ String private
- #setup_test_formula(name, content = T.unsafe(nil), tap: T.unsafe(nil), bottle_block: T.unsafe(nil), tab_attributes: T.unsafe(nil)) ⇒ Pathname private
- #setup_test_tap ⇒ Pathname private
- #stub_cask_loader(cask, ref = cask.token, call_original: false) ⇒ void private
- #stub_formula_loader(formula, ref = formula.full_name, call_original: false) ⇒ void private
- #tarball_fixture(name) ⇒ Pathname private
- #tarball_fixture_sha256(name) ⇒ String private
- #uninstall_test_formula(name) ⇒ void private
-
#url(val = "", specs = {}) ⇒ String
private
formula(...) { ... }helper blocks can be inferred as example group contexts in typed specs; declare Formula DSL methods to satisfy static analysis.
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.
89 |
# File 'sorbet/rbi/shims/rspec.rbi', line 89 def args_for_subcommand(subcommand = T.unsafe(nil), *named, **); 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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_tap ⇒ 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.
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.
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.
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.
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.
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.
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.
140 |
# File 'sorbet/rbi/shims/rspec.rbi', line 140 def url(val = "", specs = {}); end |