Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.46 kB
module RememberTokenHelpers
def request_with_remember_token(remember_token)
cookies = {
'action_dispatch.cookies' => {
Clearance::Session::REMEMBER_TOKEN_COOKIE => remember_token
}
}
env = { :clearance => Clearance::Session.new(cookies) }
Rack::Request.new env
end
def request_without_remember_token
request_with_remember_token nil
end
end
RSpec.configure do |config|
config.include RememberTokenHelpers
end
Jump to Line
Something went wrong with that request. Please try again.