     conn = get conn, auth_path(conn, :callback, "google")
 
     assert redirected_to(conn) == "/"
-    assert flash_info(conn) == "Signed in with developer@hashrocket.com"
+    assert get_flash(conn, :info) == "Signed in with developer@hashrocket.com"
 
     new_developer =
       Tilex.Repo.get_by!(Tilex.Developer, google_id: "186823978541230597895")

    conn = get conn, auth_path(conn, :callback, "google")

    assert redirected_to(conn) == "/"
    assert flash_info(conn) == "Signed in with rebecca@hashrocket.com"
  end

  test "GET /auth/google/callback with other email domain", %{conn: conn} do

    conn = get conn, auth_path(conn, :callback, "google")

    assert redirected_to(conn) == "/"
    assert get_flash(conn, :info) == "developer@gmail.com is not a valid email address"
  end

  defp ueberauth_struct(email, name, uid) do
