Re: [rspec-users] testing instance variables that are set inside views

2007-06-30 Thread aslak hellesoy
@header is an implementation detail of your view that you shouldn't care about in your view spec at all. I recommend you use the have_tag matcher instead to verify what content gets rendered as expected. Aslak On 6/29/07, Jeremy Stephens <[EMAIL PROTECTED]> wrote: > Hi all, > > In my view specs (

[rspec-users] Acts as Authenticated

2007-06-30 Thread Anonymous
I am using Acts as Authenticated and I need to call current_user in my views. How do I mock current_user and other methods of Acts as Authenticated in my view specs? ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/list

Re: [rspec-users] Acts as Authenticated

2007-06-30 Thread aslak hellesoy
On 6/26/07, Anonymous <[EMAIL PROTECTED]> wrote: > I am using Acts as Authenticated and I need to call current_user in my views. > How do I mock current_user and other methods of Acts as Authenticated in my > view specs? Hi Anon See "Mocking and stubbing helpers" http://rspec.rubyforge.org/docum

Re: [rspec-users] testing instance variables that are set inside views

2007-06-30 Thread barsalou
Quoting aslak hellesoy <[EMAIL PROTECTED]>: > @header is an implementation detail of your view that you shouldn't > care about in your view spec at all. I recommend you use the have_tag > matcher instead to verify what content gets rendered as expected. > > Aslak > Thanks Aslak, I wondered this m

Re: [rspec-users] testing instance variables that are set inside views

2007-06-30 Thread David Chelimsky
On 6/30/07, barsalou <[EMAIL PROTECTED]> wrote: > Quoting aslak hellesoy <[EMAIL PROTECTED]>: > > > @header is an implementation detail of your view that you shouldn't > > care about in your view spec at all. I recommend you use the have_tag > > matcher instead to verify what content gets rendered

Re: [rspec-users] Acts as Authenticated

2007-06-30 Thread court3nay
also see the caboose sample app for a complete integration of acts as auth with rspec. Courtenay Sent from my iPhone On Jun 30, 2007, at 8:09 AM, "aslak hellesoy" <[EMAIL PROTECTED]> wrote: > On 6/26/07, Anonymous <[EMAIL PROTECTED]> wrote: >> I am using Acts as Authenticated and I