Skip to content

Commit 5c95b44

Browse files
authored
Merge pull request #31 from dwyl/annoying-failing-test
Annoying failing test
2 parents 4393d6d + 0e28704 commit 5c95b44

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/api/web/controllers/rows_controller_test.exs

+2-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ defmodule Api.Web.RowsControllerTest do
6363
"body" => "some body",
6464
"title" => "some title",
6565
"people_id" => person.id,
66-
"inserted_at" => res.inserted_at # is there a better way to do this?
66+
"inserted_at" => res["inserted_at"]
6767
}
6868
end
6969

@@ -75,8 +75,6 @@ defmodule Api.Web.RowsControllerTest do
7575
test "updates chosen row and renders row when data is valid", %{conn: conn} do
7676
%Rows{id: id} = rows = fixture(:rows)
7777
person = person_fixture()
78-
# IO.puts "- - - - - - - person:"
79-
# IO.inspect person
8078
IO.puts "- - - - - - - person.id:"
8179
IO.inspect person.id
8280

@@ -93,7 +91,7 @@ defmodule Api.Web.RowsControllerTest do
9391
"body" => "some updated body",
9492
"title" => "some updated title",
9593
"people_id" => person.id,
96-
"inserted_at" => res.inserted_at # is there a better way to do this?
94+
"inserted_at" => res["inserted_at"]
9795
}
9896
end
9997

0 commit comments

Comments
 (0)