test/all.rb in syro-1.1.1 vs test/all.rb in syro-2.0.0.rc1
- old
+ new
@@ -144,16 +144,10 @@
on(:id) {
res.write(sprintf("GET /users/%s", inbox[:id]))
}
}
- on("articles") {
- on(:id) { |id|
- res.write(sprintf("GET /articles/%s", id))
- }
- }
-
on("posts") {
@path = path.prev
on(:post_id) {
on("comments") {
@@ -250,13 +244,9 @@
end
test "captures" do |f|
f.get("/users/42")
assert_equal "GET /users/42", f.last_response.body
- assert_equal 200, f.last_response.status
-
- f.get("/articles/23")
- assert_equal "GET /articles/23", f.last_response.body
assert_equal 200, f.last_response.status
end
test "post values" do |f|
f.post("/", "user" => { "username" => "foo" })