Module: RSpec::Mocks::ExampleMethods::ExpectHost Private
- Defined in:
- sorbet/rbi/shims/rspec.rbi
Overview
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
The rspec-mocks RBI defines ExpectHost#expect(target) with a required
argument and no block, which conflicts with the block form expect { ... }
required by matchers like raise_error, output, change, etc.
Override it to match the rspec-expectations signature.
Instance Method Summary collapse
Instance Method Details
#expect(value = T.unsafe(nil), &block) ⇒ T.untyped
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.
15 |
# File 'sorbet/rbi/shims/rspec.rbi', line 15 def expect(value = T.unsafe(nil), &block); end |