Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.

Commit

Permalink
make rest of the tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
highbeats committed May 13, 2014
1 parent b67e447 commit 3415ce0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/acceptances/manage_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ defmodule Acceptances.ManageTest do
assert Dict.get(body, :valid) == true

{_, _, body} = Tirexs.Manage.explain([index: "bear_test", type: "my_type", id: 1, q: "message:search"], @settings)
body = JSEX.decode!(to_string(body))
assert Dict.get(body, "matched") == false
body = JSEX.decode!(to_string(body), [{:labels, :atom}])
assert Dict.get(body, :matched) == false
end

# test :update do
Expand Down
4 changes: 2 additions & 2 deletions test/tirexs/bulk_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ defmodule Tirexs.BulkTest do
document = [id: "id", title: "Hello"]
assert get_id_from_document(document) == "id"

document = [{"id", "id"}, {"title", "Hello"}]
document = [{:id, "id"}, {:title, "Hello"}]
assert get_id_from_document(document) == "id"

document = [_id: "_id", title: "Hello"]
assert get_id_from_document(document) == "_id"

document = [{"_id", "_id"}, {"title", "Hello"}]
document = [{:_id, "_id"}, {:title, "Hello"}]
assert get_id_from_document(document) == "_id"
end

Expand Down

0 comments on commit 3415ce0

Please sign in to comment.