Re: [rspec-users] expecting one of two conditions

2013-03-10 Thread Matt Wynne
On 10 Mar 2013, at 02:04, Robert Poor wrote: > On Sat, Mar 9, 2013 at 4:24 PM, Adam Sroka wrote: > It depends on what you really mean: > > 1) If you care that it is either OneError or OtherError, then these are two > separate scenarios and should be written as such. > > 2) If you don't care

Re: [rspec-users] expecting one of two conditions

2013-03-10 Thread Robert Poor
On Sun, Mar 10, 2013 at 7:59 AM, Matt Wynne wrote: > Could you give both errors a common base class, then assert on that? > That's the winning solution. Thanks! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listin