File: HomeTest.hs

package info (click to toggle)
haskell-notmuch-web 0.2.0-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,180 kB
  • ctags: 220
  • sloc: haskell: 1,479; sh: 19; makefile: 9
file content (16 lines) | stat: -rw-r--r-- 357 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# LANGUAGE OverloadedStrings #-}
module HomeTest
    ( homeSpecs
    ) where

import Import hiding (get)
import Yesod.Test

homeSpecs :: YesodSpec App
homeSpecs =
  ydescribe "Basic home page tests" $
    yit "main page redirects to the login page" $ do
      get HomeR
      statusIs 302
      get ("/auth/login" :: String)
      bodyContains "Password"