[rspec-users] calls with block in views

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


I have a view:

<% restrict_to 'admin' do %>
    <%= render :partial => 'detail' %>
<% 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,

More information about the rspec-users mailing list