Forum: Ruby on Rails Testing granular permissions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
papipo (Guest)
on 2005-11-27 23:03
(Received via mailing list)
Where is the place to test if an user is, for example, the owner of a
row in
the database?

This seems to be a unit test work due to the "model security", but since
there is a session (and a logged in user an its id = row.owner.id)
present,
i don't know if this should be tested with a functional test.

Please, give me some advice. Thanks,
Rodrigo.
This topic is locked and can not be replied to.