Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix auth test.

  • Loading branch information...
commit c2ba5d94abf1a33e7d8c83eb83143ae844ffb01a 1 parent b36e61a
@robey authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  src/fauna/fauna_client.coffee
  2. +1 −1  test/test_fauna_client.coffee
View
2  src/fauna/fauna_client.coffee
@@ -47,6 +47,8 @@ class FaunaClient
debug: (message) -> Rest.debug(message)
+ setLogger: (logger) -> Rest.debug = logger
+
protocol: "https"
hostname: "rest.fauna.org"
apiVersion: "v1"
View
2  test/test_fauna_client.coffee
@@ -69,7 +69,7 @@ describe "FaunaClient", ->
it "sets owner auth", futureTest ->
f = new fauna.FaunaClient()
f.setOwnerAuth("u", "p")
- r = -> f.rest("get", "what")
+ r = -> f.publisherKeys.delete("x/y/z")
withSuccessfulRequest({}, r).then ([ resp, requests ]) ->
requests.length.should.eql(1)
requests[0].url.should.match(/u:p@/)
Please sign in to comment.
Something went wrong with that request. Please try again.