mirror of
https://code.naskya.net/repos/ndqEd
synced 2025-01-10 02:06:45 +09:00
17 lines
420 B
Haskell
17 lines
420 B
Haskell
module Handler.CommonSpec (spec) where
|
|
|
|
import TestImport
|
|
|
|
spec :: Spec
|
|
spec = withApp $ do
|
|
describe "robots.txt" $ do
|
|
it "gives a 200" $ do
|
|
get RobotsR
|
|
statusIs 200
|
|
it "has correct User-agent" $ do
|
|
get RobotsR
|
|
bodyContains "User-agent: *"
|
|
describe "favicon.ico" $ do
|
|
it "gives a 200" $ do
|
|
get FaviconR
|
|
statusIs 200
|