Test.Hspec.Snap

Running blocks of hspec-snap tests

snap

modifySite

modifySite'

afterEval

beforeEval

Core data types

data TestResponse

type SnapHspecM b

Factory style test data generation

class Factory b a d

Requests

delete

get

get'

post

put

put'

params

Helpers for dealing with TestResponses

restrictResponse

Dealing with session state (EXPERIMENTAL)

recordSession

class HasSession b

sessionShouldContain

sessionShouldNotContain

Evaluating application code

eval

Unit test assertions

shouldChange

shouldEqual

shouldNotEqual

shouldBeTrue

shouldNotBeTrue

Response assertions

should200

shouldNot200

should404

shouldNot404

should300

shouldNot300

should300To

shouldNot300To

shouldHaveSelector

shouldNotHaveSelector

shouldHaveText

shouldNotHaveText

Form tests

data FormExpectations a

form

Internal types and helpers

data SnapHspecState b

setResult

runRequest

runHandlerSafe

evalHandlerSafe