Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (21 sloc) 496 Bytes
module Oath
module Test
# Helpers for integration or feature specs
# @note these have only been tested with rspec integration and feature specs
# @since 0.0.15
module Helpers
include Warden::Test::Helpers
# Sign a user in
# @param user [User] user to sign in
# @returns user [User] signed in user
def sign_in user
login_as user
user
end
# Sign a user out
def sign_out
logout
end
end
end
end
You can’t perform that action at this time.