@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 (
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
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
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
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
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