Skip to content

Commit

Permalink
Added test for #28
Browse files Browse the repository at this point in the history
  • Loading branch information
sauliusgrigaitis committed Mar 16, 2016
1 parent 94a7489 commit d77bc2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/Spec/RouterSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ class RouterSpec: QuickSpec {
}
}

//describe("Images") {
// it("serves image file if action is not found") {
// request.path = "/image.png"
// let staticFile = router.respond(request)
// expect(staticFile.body).toNot(equal("Route Not Found"))
// }
//}

describe("Errors") {
it("returns 'Route not Found' if no action and no static file is found") {
request.path = "/nonExisting"
Expand Down

0 comments on commit d77bc2b

Please sign in to comment.