search for: current_client

Displaying 1 result from an estimated 1 matches for "current_client".

2007 Feb 06
2
Login systems : stubbing accounts and AR association proxies
...instance, we have a number of clients (companies), each of which has several accounts. A client owns a number of different types of resources, and shouldn''t see any other clients'' resources, so, for example, our ScenesController contains a lot of references to ''current_client.scenes'', rather than Scene.find(:all) All of which works pretty well, but it can make testing very tedious. I always need to set up a fake client, and a fake account, and log in with that account, and make sure that whatever resource I''m dealing with in that unit test is...