Re: [rspec-users] calls with block in views

2008-08-11 Thread David Chelimsky
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

[rspec-users] calls with block in views

2008-08-11 Thread Yury Kotlyarov
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