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
tsubery / phoenix_session_test.md
Last active Oct 7, 2019
How to set session in phoenix controller tests
View phoenix_session_test.md

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

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

And got this exception:

You can’t perform that action at this time.