Re: [rspec] Raising a mocked exception

2018-04-11 Thread David Shockley
ting > something about your design, and you may want to take a step back to think > through why you're trying to use a double in place of an exception. > There's likely an alternate design that will work better. > > HTH, > Myron > > On Wed, Apr 11, 2018 at 1:34 PM, David Shock

Re: [rspec] Raising a mocked exception

2018-04-11 Thread David Shockley
t; On Wed, Apr 11, 2018 at 12:43 PM, Asher Shockley < > daemon.shock...@gmail.com> wrote: > >> Is it possible to have a mocked method raise a mocked object instead of a >> real instance of Exception? >> >> https://gist.github.com/david-shockley-beeline/008ea9122e62