Update project name in strings

Fixes #105
This commit is contained in:
Joe Nelson
2014-12-17 10:24:24 -08:00
parent 5f4212e2fd
commit dbe1f59066
15 changed files with 167 additions and 166 deletions
+2 -2
View File
@@ -16,11 +16,11 @@ spec = before resetDb $ around withApp $
it "hides tables that anonymous does not own" $
get "/authors_only" `shouldRespondWith` 400 -- TODO: should be 404
it "indicates login failure" $ do
let auth = authHeader "dbapi_test_author" "fakefake"
let auth = authHeader "postgrest_test_author" "fakefake"
request methodGet "/authors_only" [auth] ""
`shouldRespondWith` 401
it "allows users with permissions to see their tables" $ do
_ <- post "/dbapi/users" [json| { "id":"jdoe", "pass": "1234", "role": "dbapi_test_author" } |]
_ <- post "/postgrest/users" [json| { "id":"jdoe", "pass": "1234", "role": "postgrest_test_author" } |]
let auth = authHeader "jdoe" "1234"
request methodGet "/authors_only" [auth] ""
`shouldRespondWith` 200
+1 -1
View File
@@ -26,7 +26,7 @@ spec = before resetDb $ around withApp $ do
{matchStatus = 200}
it "lists only views user has permission to see" $ do
_ <- post "/dbapi/users" [json| { "id":"jdoe", "pass": "1234", "role": "dbapi_test_author" } |]
_ <- post "/postgrest/users" [json| { "id":"jdoe", "pass": "1234", "role": "postgrest_test_author" } |]
let auth = authHeader "jdoe" "1234"
request methodGet "/" [auth] ""