[rspec-users] ordering dependency in tests?

Fearless Fool lists at ruby-forum.com
Thu Feb 24 13:53:09 EST 2011

yet more info...

The two errors appear to be closely related.  When run as individual 
is returning expected values.  When run together, premise_group.premises 
returns "phantom" premises (which show up as nil values).  For test B, 
the phantoms causes the count to be wrong.  For test A, the nil values 
cause nils to show up in a list that is passed to sort().

I'm still baffled, but I must be closer to the answer.

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list