Last active
September 11, 2018 12:39
-
-
Save hisanari/125b6d6d17ff930ffff00edbe38b2908 to your computer and use it in GitHub Desktop.
RSpec3.8でセッション、クッキーを参照したい時のメモ ref: https://qiita.com/yowayowa/items/0b322de5e2b2c219cca2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# セッションを参照したいとき | |
session['user_id'] | |
# クッキーを参照したいとき | |
@response.cookies['remember_token'] | |
@request.cookies['user_id'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment