Skip to content

Commit

Permalink
add test for issue 38
Browse files Browse the repository at this point in the history
  • Loading branch information
yfractal committed Apr 18, 2015
1 parent 796dfb2 commit 5027c3e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,17 @@ facts("redirect") do
@fact response.status => 302
@fact response.headers["Location"] => "/"
end

# test for issue 38: https://github.com/JuliaWeb/Morsel.jl/issues/38
facts("shuold update routes") do
get(app, "/update_route") do req, res
"Original"
end

get(app, "/update_route") do req, res
"Updated"
end

response = req.get("http://localhost:8000/update_route")
@fact response.data => "Updated"
end

0 comments on commit 5027c3e

Please sign in to comment.