Skip to content

Commit

Permalink
Merge pull request #93 from ably/RSA3c
Browse files Browse the repository at this point in the history
Query param: `access_token` to `accessToken`
  • Loading branch information
mattheworiordan committed Dec 2, 2015
2 parents ec61c94 + 9773a62 commit 1d2fa42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ably-ios/ARTWebSocketTransport.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ - (void)connect {
return;
}

NSURLQueryItem *accessTokenParam = [NSURLQueryItem queryItemWithName:@"access_token" value:(tokenDetails.token)];
NSURLQueryItem *accessTokenParam = [NSURLQueryItem queryItemWithName:@"accessToken" value:(tokenDetails.token)];
[selfStrong setupWebSocket:@[accessTokenParam] withOptions:selfStrong.options];
// Connect
[selfStrong.websocket open];
Expand Down
2 changes: 1 addition & 1 deletion ablySpec/Auth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class Auth : QuickSpec {
client.connect()

if let transport = client.transport as? MockTransport, let query = transport.lastUrl?.query {
expect(query).to(haveParam("access_token", withValue: client.auth().tokenDetails?.token ?? ""))
expect(query).to(haveParam("accessToken", withValue: client.auth().tokenDetails?.token ?? ""))
}
else {
XCTFail("MockTransport is not working")
Expand Down
2 changes: 1 addition & 1 deletion ablySpec/RealtimeClient.connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class RealtimeClientConnection: QuickSpec {
done()
case .Connected:
if let transport = client.transport as? MockTransport, let query = transport.lastUrl?.query {
expect(query).to(haveParam("access_token", withValue: client.auth().tokenDetails?.token ?? ""))
expect(query).to(haveParam("accessToken", withValue: client.auth().tokenDetails?.token ?? ""))
expect(query).to(haveParam("echo", withValue: "false"))
expect(query).to(haveParam("format", withValue: "json"))
expect(query).to(haveParam("client_id", withValue: "client_string"))
Expand Down

0 comments on commit 1d2fa42

Please sign in to comment.