Sha256: 4056796645ed18b34725bcea921573501c34816240322014947358f1c73886ab
Contents?: true
Size: 300 Bytes
Versions: 3
Compression:
Stored size: 300 Bytes
Contents
module Clearance module Testing module Helpers def sign_in_as(user) @controller.current_user = user return user end def sign_in sign_in_as Factory(:user) end def sign_out @controller.current_user = nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clearance-0.13.2 | lib/clearance/testing/helpers.rb |
clearance-0.13.0 | lib/clearance/testing/helpers.rb |
clearance-0.12.0 | lib/clearance/testing/helpers.rb |