Support hspec >= 2.9 in servant-swagger tests
This commit is contained in:
parent
ced5f1a655
commit
256cec566f
2 changed files with 9 additions and 9 deletions
|
@ -160,11 +160,11 @@ import Servant.Swagger.Internal.Orphans ()
|
|||
-- >>> instance Arbitrary UserId where arbitrary = UserId <$> arbitrary
|
||||
-- >>> hspec $ validateEveryToJSON (Proxy :: Proxy UserAPI)
|
||||
-- <BLANKLINE>
|
||||
-- [User]
|
||||
-- [User]...
|
||||
-- ...
|
||||
-- User
|
||||
-- User...
|
||||
-- ...
|
||||
-- UserId
|
||||
-- UserId...
|
||||
-- ...
|
||||
-- Finished in ... seconds
|
||||
-- 3 examples, 0 failures
|
||||
|
|
|
@ -53,10 +53,10 @@ import Servant.Swagger.Internal.TypeLevel
|
|||
--
|
||||
-- >>> hspec $ context "ToJSON matches ToSchema" $ validateEveryToJSON (Proxy :: Proxy UserAPI)
|
||||
-- <BLANKLINE>
|
||||
-- ToJSON matches ToSchema
|
||||
-- User
|
||||
-- ToJSON matches ToSchema...
|
||||
-- User...
|
||||
-- ...
|
||||
-- UserId
|
||||
-- UserId...
|
||||
-- ...
|
||||
-- Finished in ... seconds
|
||||
-- 2 examples, 0 failures
|
||||
|
@ -118,11 +118,11 @@ validateEveryToJSONWithPatternChecker checker _ = props
|
|||
-- :}
|
||||
-- <BLANKLINE>
|
||||
-- read . show == id
|
||||
-- Bool
|
||||
-- Bool...
|
||||
-- ...
|
||||
-- Int
|
||||
-- Int...
|
||||
-- ...
|
||||
-- [Char]
|
||||
-- [Char]...
|
||||
-- ...
|
||||
-- Finished in ... seconds
|
||||
-- 3 examples, 0 failures
|
||||
|
|
Loading…
Reference in a new issue