Skip to content

Commit

Permalink
TODO: Assign on requestToken - Key does not support requested capabil…
Browse files Browse the repository at this point in the history
…ities
  • Loading branch information
ricardopereira committed Nov 14, 2015
1 parent 9ec244a commit 9cec8f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ably-iosTests/ARTRealtimeAttachTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,13 @@ - (void)testPresenceEnterRestricted {
[expect fulfill];
}];
}
else if (state == ARTRealtimeFailed && errorInfo) {
XCTFail(@"%@", errorInfo);
else if (state == ARTRealtimeFailed) {
if (errorInfo) {
XCTFail(@"%@", errorInfo);
}
else {
XCTFail();
}
[expect fulfill];
}
}];
Expand Down
2 changes: 2 additions & 0 deletions ably-iosTests/ARTTestUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ + (void)setupApp:(ARTClientOptions *)options withDebug:(BOOL)debug withAlteratio

ARTClientOptions *testOptions = [options copy];

// TODO: assign key[@"capability"]

This comment has been minimized.

Copy link
@ricardopereira

ricardopereira Nov 14, 2015

Author Contributor

@mattheworiordan ClientOptions has once a capability property. Now it hasn't.
What is the right way to assign the capability for the issuing key?

ErrorMessage = "Key does not support requested capabilities";


testOptions.key = key[@"keyStr"];

if (alt == TestAlterationBadKeyId || alt == TestAlterationBadKeyValue)
Expand Down

0 comments on commit 9cec8f1

Please sign in to comment.