hspec-wai-0.9.2: Experimental Hspec support for testing WAI applications

Safe HaskellNone
LanguageHaskell2010

Test.Hspec.Wai.Internal

Synopsis

Documentation

type WaiExpectation = WaiSession () Source #

An expectation in the WaiSession monad. Failing expectations are communicated through exceptions (similar to Expectation and Assertion).

newtype WaiSession a Source #

A WAI test session that carries the Application under test and some client state.

Constructors

WaiSession 

Fields

Instances
Monad WaiSession Source # 
Instance details

Defined in Test.Hspec.Wai.Internal

Methods

(>>=) :: WaiSession a -> (a -> WaiSession b) -> WaiSession b #

(>>) :: WaiSession a -> WaiSession b -> WaiSession b #

return :: a -> WaiSession a #

fail :: String -> WaiSession a #

Functor WaiSession Source # 
Instance details

Defined in Test.Hspec.Wai.Internal

Methods

fmap :: (a -> b) -> WaiSession a -> WaiSession b #

(<$) :: a -> WaiSession b -> WaiSession a #

MonadFail WaiSession Source # 
Instance details

Defined in Test.Hspec.Wai.Internal

Methods

fail :: String -> WaiSession a #

Applicative WaiSession Source # 
Instance details

Defined in Test.Hspec.Wai.Internal

Methods

pure :: a -> WaiSession a #

(<*>) :: WaiSession (a -> b) -> WaiSession a -> WaiSession b #

liftA2 :: (a -> b -> c) -> WaiSession a -> WaiSession b -> WaiSession c #

(*>) :: WaiSession a -> WaiSession b -> WaiSession b #

(<*) :: WaiSession a -> WaiSession b -> WaiSession a #

MonadIO WaiSession Source # 
Instance details

Defined in Test.Hspec.Wai.Internal

Methods

liftIO :: IO a -> WaiSession a #

Example WaiExpectation Source # 
Instance details

Defined in Test.Hspec.Wai.Internal

Associated Types

type Arg WaiExpectation :: Type #

Testable WaiExpectation Source # 
Instance details

Defined in Test.Hspec.Wai.QuickCheck

type Arg WaiExpectation Source # 
Instance details

Defined in Test.Hspec.Wai.Internal