This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/test/Handler/CommonSpec.hs
2020-01-11 22:49:03 +01:00

18 lines
465 B
Haskell

module Handler.CommonSpec (spec) where
import TestImport
spec :: Spec
spec = withApp $ do
describe "robots.txt" $ do
it "gives a 200" $ do
get $ WellKnownR RobotsTxt
statusIs 200
it "has correct User-agent" $ do
get $ WellKnownR RobotsTxt
bodyContains "User-agent: *"
describe "favicon.ico" $ do
it "gives a 200" $ do
get $ WellKnownR FaviconIco
statusIs 200