Merge search behaviour change, and refactor elasticsearch #28
1 changed files with 2 additions and 1 deletions
|
@ -369,7 +369,8 @@ test "it returns reports with notes", %{conn: conn, admin: admin} do
|
||||||
refute is_nil(note)
|
refute is_nil(note)
|
||||||
|
|
||||||
assert note["user"]["nickname"] == admin.nickname
|
assert note["user"]["nickname"] == admin.nickname
|
||||||
assert note["content"] == "this is disgusting!"
|
# We use '=~' because the order of the notes isn't guaranteed
|
||||||
|
assert note["content"] =~ "this is disgusting"
|
||||||
assert note["created_at"]
|
assert note["created_at"]
|
||||||
assert response["total"] == 1
|
assert response["total"] == 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue