Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This entire module only serves to be backwards compatible with Test.Hspec.Wai.Matcher
This approach of asserting what the response looks like is obsolete because of the way sydtest does things.
You should use shouldBe
instead.
Documentation
type Body = ByteString Source #
data ResponseMatcher Source #
Instances
Num ResponseMatcher Source # | |
Defined in Test.Syd.Wai.Matcher (+) :: ResponseMatcher -> ResponseMatcher -> ResponseMatcher # (-) :: ResponseMatcher -> ResponseMatcher -> ResponseMatcher # (*) :: ResponseMatcher -> ResponseMatcher -> ResponseMatcher # negate :: ResponseMatcher -> ResponseMatcher # abs :: ResponseMatcher -> ResponseMatcher # signum :: ResponseMatcher -> ResponseMatcher # fromInteger :: Integer -> ResponseMatcher # | |
IsString ResponseMatcher Source # | |
Defined in Test.Syd.Wai.Matcher fromString :: String -> ResponseMatcher # |
data MatchHeader Source #
MatchHeader ([Header] -> Body -> Maybe String) |
Instances
IsString MatchBody Source # | |
Defined in Test.Syd.Wai.Matcher fromString :: String -> MatchBody # |
bodyEquals :: Body -> MatchBody Source #
(<:>) :: HeaderName -> ByteString -> MatchHeader Source #
formatHeader :: Header -> String Source #
safeToString :: ByteString -> Maybe String Source #