Displaying 1 result from an estimated 1 matches for "featured_user".
2008 Mar 12
2
RSpec view test for :partial with :locals?
I''m currently working on some RSpec view tests and I''m having problems
with expect_render. Most of the expect_render''s work fine, but in one
of my views I have:
<%= render :partial => "user_cloud", :locals => {:user =>
@featured_user} %>
I see that expect_render supports ":object" or ":collection" for the
second parameter, but this partial uses ":locals". I tried
expect_render without the second parameter and with ":locals" and it
failed to match both times. I confirmed that t...