summaryrefslogtreecommitdiff
path: root/test/elixir/test/basics_test.exs
diff options
context:
space:
mode:
Diffstat (limited to 'test/elixir/test/basics_test.exs')
-rw-r--r--test/elixir/test/basics_test.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/elixir/test/basics_test.exs b/test/elixir/test/basics_test.exs
index cde11aa5e..d5deaf76b 100644
--- a/test/elixir/test/basics_test.exs
+++ b/test/elixir/test/basics_test.exs
@@ -424,6 +424,11 @@ defmodule BasicsTest do
resp = Couch.get("/#{db_name}/_design_docs?" <> qstr)
assert resp.status_code == 200
assert resp.body == %{"offset" => :null, "rows" => [], "total_rows" => 2}
+
+ # update_seq=true
+ resp = Couch.get("/#{db_name}/_design_docs?update_seq=true")
+ assert resp.status_code == 200
+ assert Map.has_key?(resp.body, "update_seq")
end
@tag :with_db
@@ -480,6 +485,11 @@ defmodule BasicsTest do
resp = Couch.get("/#{db_name}/_local_docs?" <> qstr)
assert resp.status_code == 200
assert resp.body == %{"offset" => :null, "rows" => [], "total_rows" => 2}
+
+ # update_seq=true
+ resp = Couch.get("/#{db_name}/_local_docs?update_seq=true")
+ assert resp.status_code == 200
+ assert Map.has_key?(resp.body, "update_seq")
end
end