We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87dc115 commit 663b730Copy full SHA for 663b730
Tests/PusherSwiftTests.swift
@@ -334,6 +334,22 @@ class PusherClientInitializationSpec: QuickSpec {
334
expect(pusher.connection.options.port).to(equal(123))
335
}
336
337
+
338
+ context("a cluster") {
339
+ context("and no host") {
340
+ it("sets the host correctly") {
341
+ pusher = Pusher(key: key, options: ["cluster": "eu"])
342
+ expect(pusher.connection.options.host).to(equal("ws-eu.pusher.com"))
343
+ }
344
345
346
+ context("and a host") {
347
348
+ pusher = Pusher(key: key, options: ["cluster": "eu", "host": "test.test.test"])
349
+ expect(pusher.connection.options.host).to(equal("test.test.test"))
350
351
352
353
354
355
0 commit comments