Created
August 30, 2013 20:23
-
-
Save patrickgombert/6393923 to your computer and use it in GitHub Desktop.
Dynamo 404 Question
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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