CommonSpec.hs 420 B

123456789101112131415161718
  1. module Handler.CommonSpec (spec) where
  2. import TestImport
  3. spec :: Spec
  4. spec = withApp $ do
  5. describe "robots.txt" $ do
  6. it "gives a 200" $ do
  7. get RobotsR
  8. statusIs 200
  9. it "has correct User-agent" $ do
  10. get RobotsR
  11. bodyContains "User-agent: *"
  12. describe "favicon.ico" $ do
  13. it "gives a 200" $ do
  14. get FaviconR
  15. statusIs 200