Milan Dobrota wrote:
> In the specs it is actually 10.times instead of 9.
> 
> Milan Dobrota wrote:
>> post = Post.make
>> 9.times { Comment.make(:post => post) }
>> comment = Comment.new(:post => post)
>> comment.save.should be_false

Well, there's your problem, then -- you've already made your 10th 
comment!

BTW, you should consider comments.count instead of .length -- let the DB 
do the counting.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to