samuelgiles / rspec-sorbet

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

Fix unions with `T::Array`. #11

Closed reitermarkus closed 3 years ago

reitermarkus commented 3 years ago

Fixes the following error:

NoMethodError:
  undefined method `raw_type' for #<T::Types::TypedArray:0x00007f95c5ca9d80>

Also changed the tests to not swallow other exceptions when not expecting a TypeError, which uncovered some other subtle bugs.