defmodule ReisterRouterTest do
  use Funnel.TestCase, async: true
  use Dynamo.HTTP.Case

  @endpoint RegisterRouter

  test "returns 201" do
    conn = post("/")
    assert conn.status == 201
  end

  test "returns json" do
    conn = post("/")
    assert conn.resp_headers["Content-Type"] == "application/json"
  end

  test "returns a token" do
    conn = post("/")
    {:ok, body} = JSEX.decode conn.resp_body
    assert size(body["token"]) == 32
  end

end

defmodule RegisterRouterTest do
  use Funnel.TestCase, async: true
  use Dynamo.HTTP.Case

  @endpoint RegisterRouter

  test "returns 201" do
    conn = post("/")
    assert conn.status == 201
  end

  test "returns json" do
    conn = post("/")
    assert conn.resp_headers["Content-Type"] == "application/json"
  end

  test "returns a token" do
    conn = post("/")
    {:ok, body} = JSEX.decode conn.resp_body
    assert size(body["token"]) == 32
  end

end

Fix a typo in tests.
Fix a typo in tests.

Signed-off-by: François de Metz <5187da0b934cc25eb2201a3ec9206c24b13cb23b@stormz.me>

chatgris/funnel