Add errors and optional fields
This commit is contained in:
@@ -32,8 +32,8 @@ instance FromRow SingleString where
|
||||
|
||||
shouldFetch :: (Eq a, FromRow a, Show a) => Connection -> ByteString -> [a] -> IO ()
|
||||
shouldFetch conn query expectedRows = do
|
||||
Just actualRows <- Opium.fetch_ conn query
|
||||
actualRows `shouldBe` expectedRows
|
||||
actualRows <- Opium.fetch_ conn query
|
||||
actualRows `shouldBe` Right expectedRows
|
||||
|
||||
spec :: SpecWith Connection
|
||||
spec = do
|
||||
|
||||
Reference in New Issue
Block a user