[rspec-users] calls with block in views

Yury Kotlyarov yura at brainhouse.ru
Mon Aug 11 03:05:00 EDT 2008


Hi!

I have a view:

<% restrict_to 'admin' do %>
  <div>
    <%= render :partial => 'detail' %>
  </div>
<% end %>

What's the best way to spec view in this case - I just want to yield 
block in restrict_to call.

Thanks in advance,
Yury


More information about the rspec-users mailing list