Add 415 test for openapi req on none root path

This commit is contained in:
Jacky Hu
2016-06-18 10:18:43 +08:00
parent a9ffde4d5f
commit 1a25bb501f
+5
View File
@@ -87,6 +87,11 @@ spec = do
in
D4.fetchFilesystemAndValidate schemaContext ((fromJust . decode) respBody) `shouldReturn` Right ()
it "should respond to openapi request on none root path with 415" $
request methodGet "/none_root_path"
(acceptHdrs "application/openapi+json") ""
`shouldRespondWith` 415
describe "Table info" $ do
it "The structure of complex views is correctly detected" $
request methodOptions "/filtered_tasks" [] "" `shouldRespondWith`