Skip to content

Instantly share code, notes, and snippets.

Gal Tsubery tsubery

Block or report user

Report or block tsubery

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tsubery /
Last active Oct 7, 2019
How to set session in phoenix controller tests

If you are reading this, you probably tried to write code like this

test "testing session" do
  |> put_session(:user_id, 234)
  |> get("/")

And got this exception:

You can’t perform that action at this time.