samuelgiles / rspec-sorbet

A small gem consisting of helpers for using Sorbet & RSpec together.
MIT License
39 stars 9 forks source link

Allow instance_doubles within T.cast calls #7

Closed samuelgiles closed 4 years ago

samuelgiles commented 4 years ago

This PR adds support for T.cast; the message signature on the TypeError raised for inline type checking on T.cast usage is identical to T.let.

michaelwebb76 commented 4 years ago

LGTM