[rspec-users] ordering dependency in tests?

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

David Chelimsky wrote in post #983675:
> On Feb 24, 2011, at 11:55 AM, Fearless Fool wrote:
> What are the failures you're seeing?

When running A before B, B's assertion that:
  @common_options[:premise_group].premises.size.should == 3
fails because premise_group.premises.size == 5 (even though only 3 
premises have been created).

When running B before A, A's assertion that:
  e1.ranking(premises[0]).should be_within(0.0001).of(0.0)
fails because a call to sort() fails because there is a nil in some list 
that ought to be a Float.  (I haven't dug deeper into that one.)

But to reiterate, either tests completes without error when run alone. 
Still digging...

- ff

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

More information about the rspec-users mailing list