[rspec-users] expect_render twice in views
Jed Hurt
jed.hurt at gmail.com
Sat Jul 14 03:31:42 EDT 2007
I found this:
controller.expect_render(:partial => 'thing', :collection => things).once
but I am trying to expect_render twice in my view spec:
template.expect_render(:partial => 'order_details').twice
This doesn't work as the template.expect_render call seems to be
returning an array. Is it possible to expect the rendering of a
partial twice in a view spec?
More information about the rspec-users
mailing list