test(spec): rename misleading function name in ErrorSpec.hs
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
This commit is contained in:
@@ -8,9 +8,9 @@ import Test.Hspec.Wai.JSON
|
|||||||
import Protolude hiding (get)
|
import Protolude hiding (get)
|
||||||
import SpecHelper
|
import SpecHelper
|
||||||
|
|
||||||
pgErrorCodeMapping :: SpecWithConfig
|
spec :: SpecWithConfig
|
||||||
pgErrorCodeMapping withConfig = withConfig baseCfg $ do
|
spec withConfig = withConfig baseCfg $ do
|
||||||
describe "PostreSQL error code mappings" $ do
|
describe "Test PostgreSQL and PostgREST errors" $ do
|
||||||
it "should return 500 for cardinality_violation" $
|
it "should return 500 for cardinality_violation" $
|
||||||
get "/bad_subquery" `shouldRespondWith` 500
|
get "/bad_subquery" `shouldRespondWith` 500
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -136,7 +136,7 @@ main = do
|
|||||||
, ("Feature.Query.DeleteSpec" , Feature.Query.DeleteSpec.spec)
|
, ("Feature.Query.DeleteSpec" , Feature.Query.DeleteSpec.spec)
|
||||||
, ("Feature.Query.EmbedDisambiguationSpec" , Feature.Query.EmbedDisambiguationSpec.spec)
|
, ("Feature.Query.EmbedDisambiguationSpec" , Feature.Query.EmbedDisambiguationSpec.spec)
|
||||||
, ("Feature.Query.EmbedInnerJoinSpec" , Feature.Query.EmbedInnerJoinSpec.spec)
|
, ("Feature.Query.EmbedInnerJoinSpec" , Feature.Query.EmbedInnerJoinSpec.spec)
|
||||||
, ("Feature.Query.ErrorSpec.pgErrorCodeMapping" , Feature.Query.ErrorSpec.pgErrorCodeMapping)
|
, ("Feature.Query.ErrorSpec" , Feature.Query.ErrorSpec.spec)
|
||||||
, ("Feature.Query.InsertSpec" , Feature.Query.InsertSpec.spec)
|
, ("Feature.Query.InsertSpec" , Feature.Query.InsertSpec.spec)
|
||||||
, ("Feature.Query.JsonOperatorSpec" , Feature.Query.JsonOperatorSpec.spec)
|
, ("Feature.Query.JsonOperatorSpec" , Feature.Query.JsonOperatorSpec.spec)
|
||||||
, ("Feature.Query.NullsStripSpec" , Feature.Query.NullsStripSpec.spec)
|
, ("Feature.Query.NullsStripSpec" , Feature.Query.NullsStripSpec.spec)
|
||||||
|
|||||||
Reference in New Issue
Block a user