On Mon, Aug 11, 2008 at 2:05 AM, Yury Kotlyarov <[EMAIL PROTECTED]> wrote:
> Hi!
>
> 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.
Here
Hi!
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,
Yury
___
rspec-users mailing list