Skip to content

Commit

Permalink
format tests to be more reflective of real data #1
Browse files Browse the repository at this point in the history
  • Loading branch information
RobStallion committed Aug 3, 2017
1 parent 067392d commit 1e5321d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/controllers/user_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule EpjsApp.UserControllerTest do
describe "epjs user is inserted into the db" do
setup %{} do
Repo.insert!(%EPJSUser{
Patient_ID: 123,
Patient_ID: 12345678,
Forename: "Kat",
Surname: "Bow",
DOB: DateTime.from_naive!(~N[1989-01-01 00:00:00.00], "Etc/UTC"),
Expand All @@ -24,7 +24,7 @@ defmodule EpjsApp.UserControllerTest do
conn = get conn, "/user/carer-connection/find-user?changeset=" <> changeset
assert conn.resp_body
|> Poison.decode!
|> Map.get("Patient_ID") == 123
|> Map.get("Patient_ID") == 12345678
end

test "GET /user/carer-connection/find-user returns epjs user with invalid info", %{conn: conn} do
Expand Down
1 change: 0 additions & 1 deletion test/lib/clinician_connection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ defmodule EpjsApp.ClinicianConnectionTest do
test "gets patients for a clinician by correct email" do
email = %{"email" => "[email protected]"}
result = ClinicianConnection.get_patients(email)
IO.inspect(result, label: "------------>")
assert result.patient_ids == [123]
assert result.patients
|> Enum.at(0)
Expand Down

0 comments on commit 1e5321d

Please sign in to comment.