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
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to