Skip to content

Commit

Permalink
Fix lack-middleware-backtrace and tests of lack-middleware-static for…
Browse files Browse the repository at this point in the history
… CLISP support.
  • Loading branch information
fukamachi committed Aug 19, 2015
1 parent 0e13680 commit fd0ca96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/middleware/backtrace.lisp
Expand Up @@ -23,7 +23,7 @@
((or pathname string)
(with-open-file (out output
:direction :output
:external-format :utf-8
:external-format #+clisp charset:utf-8 #-clisp :utf-8
:if-exists :append
:if-does-not-exist :create)
(print-error condition env out))))))
Expand Down
6 changes: 4 additions & 2 deletions t/middleware/static.lisp
Expand Up @@ -22,7 +22,8 @@
(funcall app (generate-env "/public/jellyfish.jpg"))
(is status 200)
(is (getf headers :content-type) "image/jpeg")
(is body (asdf:system-relative-pathname :lack #P"data/jellyfish.jpg")))
(is (namestring body)
(namestring (asdf:system-relative-pathname :lack #P"data/jellyfish.jpg"))))

(destructuring-bind (status headers body)
(funcall app (generate-env "/public/hoge.png"))
Expand Down Expand Up @@ -64,7 +65,8 @@
(funcall app (generate-env "/static/jellyfish.jpg"))
(is status 200)
(is (getf headers :content-type) "image/jpeg")
(is body (asdf:system-relative-pathname :lack #P"data/jellyfish.jpg")))
(is (namestring body)
(namestring (asdf:system-relative-pathname :lack #P"data/jellyfish.jpg"))))

(is (car (funcall app (generate-env "/static/not-found.png"))) 404)))

Expand Down

0 comments on commit fd0ca96

Please sign in to comment.