serversession/examples/serversession-example-yesod-persistent/test/Handler/CommonSpec.hs
Felipe Lessa 23584a9c47 Add new Yesod+Persistent example, currently just "yesod init".
Separating "yesod init" commit from others in order to be clearer what
changes were made to the scaffold.

[ci skip]
2015-06-01 13:01:23 -03:00

18 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