[rspec-users] expecting one of two conditions

Robert Poor rdpoor at gmail.com
Sun Mar 10 03:30:16 UTC 2013


On Sat, Mar 9, 2013 at 6:08 PM, Samer Masry <samer.masry at gmail.com> wrote:

> It would be better to split that into two tests that test when each error
> is raised.
>

Except that the specific error that I receive depends on the ordering of
the data in the database, which isn't something I control.  Hmm -- as I
stare at that previous sentence, I detect a broader design smell rather
than a specific code smell.  I'll go think about this...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20130309/68381095/attachment.html>


More information about the rspec-users mailing list