[rspec-users] ordering dependency in tests?

David Chelimsky dchelimsky at gmail.com
Thu Feb 24 14:19:33 EST 2011

On Feb 24, 2011, at 12:58 PM, Fearless Fool wrote:

> David Chelimsky wrote in post #983690:
>>>   RESIDENTIAL = self.create(:name => "residential")
>> ^^ this is probably the problem ^^
>> ...
> Ah!  got it.  FWIW, I wrote a query to the Rails group several months 
> ago wondering if this construct was legit and got feedback that it was 
> legit.

I think it's OK as a const with find_or_create, but with find, it is clearly problematic.


> Your explanation makes good sense.  I'll change that and see 
> what happens.
> If you don't hear back from me, assume it's working! ;)  And thanks in 
> advance.

More information about the rspec-users mailing list