Sha256: 53746a6ff084850e9514b98cda3b0d2ccb1ceda6f5082738db75dc1adc34bc39
Contents?: true
Size: 426 Bytes
Versions: 4
Compression:
Stored size: 426 Bytes
Contents
module Clearance module Testing module Helpers def setup_controller_request_and_response super @request.env[:clearance] = Clearance::Session.new(@request.env) end def sign_in sign_in_as FactoryGirl.create(:user) end def sign_in_as(user) @controller.current_user = user end def sign_out @controller.sign_out end end end end
Version data entries
4 entries across 4 versions & 1 rubygems