Stubbing types for dry-types in specs


#1

Is there any generic and clean way, to make stubbed object to conform to type definition? I want to type-check some input values using dry-types, but at the same time, I would like to still be able to stub them in specs.

I’ve described this issue in more details on reddit, but didn’t get any resonable answer there: https://www.reddit.com/r/ruby/comments/7s5c96/drytypes_how_to_use_stubs_to_pass