Sha256: 27131093e23feabb12d646be0fb86a118e59e2593f2f053ba7f3ea8cce133cc7
Contents?: true
Size: 361 Bytes
Versions: 2
Compression:
Stored size: 361 Bytes
Contents
module RequestMacros # login a given user by passing a TOKEN def login(user) post_via_redirect user_session_path, headers: {'X-User-Token' => user.authentication_token} end # logout a given user by passing a TOKEN def logout(user) post_via_redirect destroy_user_session_path, headers: {'X-User-Token' => user.authentication_token} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise_meteor-0.1.1 | spec/support/request_macros.rb |
devise_meteor-0.1.0 | spec/support/request_macros.rb |