Skip to content

Instantly share code, notes, and snippets.

@patrickgombert
Created August 30, 2013 20:23
Show Gist options
  • Save patrickgombert/6393923 to your computer and use it in GitHub Desktop.
Save patrickgombert/6393923 to your computer and use it in GitHub Desktop.
Dynamo 404 Question
post "/:something" do
conn = conn.resp_content_type("text/plain")
conn = conn.resp_body("This does not exist")
conn = conn.status(404)
conn
end
test "it returns a 404" do
conn = post("/not-real")
assert conn.status == 404
assert conn.resp_body == "This does not exist"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment