Skip to content

Commit

Permalink
Added documentation on how get_with etc. functional test helpers set …
Browse files Browse the repository at this point in the history
…the current user for the request
  • Loading branch information
stffn committed Dec 24, 2009
1 parent d458a26 commit 1511fab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/declarative_authorization/maintenance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ def self.usages_by_controller
# ...
# end
# end
#
# Note: get_with etc. do two things to set the user for the request:
# Authorization.current_user is set and session[:user], session[:user_id]
# are set appropriately. If you determine the current user in a different
# way, these methods might not work for you.
module TestHelper
include Authorization::Maintenance

Expand Down

0 comments on commit 1511fab

Please sign in to comment.