 
       path = user_path(conn, :update, user)
 
-      conn =
-        conn
-        |> authenticate(user)
-        |> put(path, params)
-
-      id = json_response(conn, 200)["data"]["id"]
-      assert id
-      user =  Repo.get(User, id)
-      assert user.email == "test@user.com"
-      assert user.first_name == "Test"
-      assert user.last_name == "User"
-      assert user.website == "http://www.example.com"
-      assert user.biography == "Just a test user"
+      assert conn |> authenticate(user) |> put(path, params) |> json_response(200)
     end
 
     test "tracks authentication & update profile events in Segment", %{conn: conn} do

defmodule CodeCorps.UserControllerTest do
  use CodeCorps.ApiCase

  alias CodeCorps.User
  alias CodeCorps.Repo

    test "creates and renders resource when data is valid", %{conn: conn} do
      attrs = Map.put(@valid_attrs, :password, "password")
      conn = post conn, user_path(conn, :create), %{
        "data" => %{
          "attributes" => attrs
        }
      }

      assert conn |> json_response(201)
    end

    test "calls segment tracking after user is created", %{conn: conn} do
