jeudi 23 juin 2016

Phoenix Elixir html_response test left-hand value and right-hand value not same?

I have a simple controller test for html response. Why does assert html_response(conn, 200) =~ "New User" produce this:

enter image description here

While it only should test for 200 OK response? (it is 200, and removing the =~ "New User" works though).

Aucun commentaire:

Enregistrer un commentaire