Module: RSpec::Sorbet::Doubles
- Included in:
- RSpec::Sorbet
- Defined in:
- lib/rspec/sorbet/doubles.rb
Instance Method Summary collapse
- #allow_doubles! ⇒ Object (also: #allow_instance_doubles!)
Instance Method Details
#allow_doubles! ⇒ Object Also known as: allow_instance_doubles!
9 10 11 12 13 14 15 16 17 |
# File 'lib/rspec/sorbet/doubles.rb', line 9 def allow_doubles! T::Configuration.inline_type_error_handler = proc do |error| inline_type_error_handler(error) end T::Configuration.call_validation_error_handler = proc do |signature, opts| call_validation_error_handler(signature, opts) end end |