From d77bc2b2cd0dc1449d7131916acab4b463550522 Mon Sep 17 00:00:00 2001 From: Saulius Grigaitis Date: Wed, 16 Mar 2016 23:17:02 +0200 Subject: [PATCH] Added test for #28 --- Sources/Spec/RouterSpec.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/Spec/RouterSpec.swift b/Sources/Spec/RouterSpec.swift index 8076a6f..fe938bc 100644 --- a/Sources/Spec/RouterSpec.swift +++ b/Sources/Spec/RouterSpec.swift @@ -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"