I get error messages that indicate that nobody is logged in.  The admin 
should be able to view the admin index page, but the users and the general 
public should not be able to.  Unfortunately, the test doesn't show that 
the admin can view the admin index page.  While this works in my 
development environment, it doesn't work in the test environment.

On Thursday, June 25, 2015 at 11:41:29 AM UTC-5, Frederick Cheung wrote:

> What do you mean by "kills the session". What happens? How does the test 
> fail? 
>
> Fred 
>
> > The source code is: 
> > 
> >     login_admin('[email protected] <javascript:>', 'Harvard Law', 
> false) 
> >       
> >       
> >         
> >             # View admin index 
> >       
> >       
> >         
> >             admin_path = root_path + '/admins' 
> >       
> >       
> >         
> >             click_on 'Profile' 
> >       
> >       
> >         
> >         
> > 
> > 
> >       
> >       
> >         
> >             visit admin_path # NOTE: using the 'visit' command loses the 
> session 
> >       
> >       
> >         
> >         
> > 
> > 
> >       
> >       
> >         
> >             @a1.reload 
> >       
> >       
> >         
> >             #assert_equal current_path, '/admins' 
> >       
> >       
> >         
> >             assert_text 'Vivian' 
> >       
> >       
> >         
> >             assert_text 'Kensington' 
> >       
> >       
> >         
> >             assert_text 'Elle' 
> >       
> >       
> >         
> >             assert_text 'Woods' 
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/ecc77f37-9620-4dca-b6f2-8b5659ae1c3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to