Displaying 1 result from an estimated 1 matches for "comment_1001".
2008 Jun 06
2
Problems with view spec and mocking will_paginate
...te/zgohh6dcts04wpfagfgz5q
and this is the pastie for view''s spec:
http://pastie.org/210485
and the failure:
1)
ActionView::TemplateError in ''/posts/index.html.erb should render list
of posts''
undefined method `count'' for [#<Comment:0x..fdb6535be @name="Comment_1001">]:Array
I tried this: Array.stub!(:count).and_return(1)
but didn''t work.
Can somebody help me?
Regards.
--
"Es imposible afinar un l?piz con una cuchilla desafilada. Es igualmente in?til tratar de hacerlo con diez."
(Edsger Dijkstra)
+----------------------------...