Skip to content

Commit

Permalink
RSL1h
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardopereira committed Apr 22, 2016
1 parent 98c99da commit 055a727
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Spec/RestClientChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,20 @@ class RestClientChannel: QuickSpec {

}

// RSL1h
it("should provide an optional argument that allows the clientId value to be specified") {
let options = AblyTests.commonAppSetup()
options.clientId = "john"
let client = ARTRest(options: options)
let channel = client.channels.get("test")
waitUntil(timeout: testTimeout) { done in
channel.publish("name", data: "some data", clientId: "tester") { error in
expect(error!.message).to(contain("invalid clientId"))
done()
}
}
}

}

// RSL3, RSP1
Expand Down

0 comments on commit 055a727

Please sign in to comment.