On Oct 15, 2011, at 1:44 AM, Gordon Yeong wrote:

> login_admin_user creates a before hook, but here it's _in a before hook_. 
> That doesn't work. Try:
> 
> yes that makes sense 
>  
> context 'with an admin user signed in' do
>  login_admin_user # not inside a before hook
>  it '...' do
>     # ....
>  end
> end
> 
> hmmm... actually, that would work but I had the helper method, 
> login_admin_user defined because I had wanted to not repeat the code over 
> specs.

Then how do you know who you're logged in as when you're trying to understand 
why an example failed?

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rspec?hl=en.

Reply via email to