![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi all, *I googled a bit and tried looking up several rails books to no success. *I have a users.yml file which contains two users: one with admin priviledges and one without *My application_controller.rb has a method which checks if a given user has admin priviledges or not. *I have 3 controllers: Users, UserSessions and Post. *I am using Authlogic. *For my Post functional tests, I would like to know how do I log each user fixture in and test as accordingly (ie some parts of the site should not be accessible by non-admin users). *Thank you. --~--~---------~--~----~------------~-------~--~----~ |
#3
| |||
| |||
|
|
hi all, Â*I googled a bit and tried looking up several rails books to no success. Â*I have a users.yml file which contains two users: one with admin priviledges and one without Â*My application_controller.rb has a method which checks if a given user has admin priviledges or not. Â*I have 3 controllers: Users, UserSessions and Post. Â*I am using Authlogic. Â*For my Post functional tests, I would like to know how do I log each user fixture in and test as accordingly (ie some parts of the site should not be accessible by non-admin users). Â*Thank you. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
anyone who's using Authlogic and got a solution for creating tests (that can auto login)? --~--~---------~--~----~------------~-------~--~----~ |
#6
| |||
| |||
|
|
anyone who's using Authlogic and got a solution for creating tests (that can auto login)? |
![]() |
| Thread Tools | |
| Display Modes | |
| |