summaryrefslogtreecommitdiff
path: root/test/elixir/test/partition_design_docs_test.exs
blob: 42a2ced77268a4ef1811dbe87fc7d279b32f4a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
defmodule PartitionDesignDocsTest do
  use CouchTestCase

  @moduledoc """
  Test Partition functionality for partition design docs
  """

  @tag :with_partitioned_db
  test "/_partition/:pk/_design/doc 404", context do
    db_name = context[:db_name]

    url = "/#{db_name}/_partition/fake-key/_design/mrtest/"
    resp = Couch.get(url)
    assert resp.status_code == 404
  end
end