Unify JSON definition in tests

This commit is contained in:
calebmer
2015-12-16 18:24:04 -05:00
parent 7392d204bf
commit 8f0ba7c41e
2 changed files with 20 additions and 19 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ module Feature.DeleteSpec where
import Test.Hspec
import Test.Hspec.Wai
import Text.Heredoc
import Hasql as H
import Hasql.Postgres as P
@@ -28,7 +29,7 @@ spec struct pool = beforeAll resetDb
_ <- request methodDelete "/items?id=lt.15" [] ""
get "/items"
`shouldRespondWith` ResponseMatcher {
matchBody = Just "[{\"id\":15}]"
matchBody = Just [str|[{"id":15}]|]
, matchStatus = 200
, matchHeaders = ["Content-Range" <:> "0-0/1"]
}