pubnub 4.0.27 → 4.0.28

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pubnub might be problematic. Click here for more details.

Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.pubnub.yml +8 -1
  3. data/.rubocop.yml +9 -3
  4. data/.travis.yml +6 -19
  5. data/CHANGELOG.md +86 -82
  6. data/Gemfile +7 -5
  7. data/Gemfile.lock +155 -157
  8. data/README.md +34 -34
  9. data/VERSION +1 -1
  10. data/gemfiles/celluloid_017.gemfile +4 -4
  11. data/gemfiles/celluloid_018.gemfile +4 -4
  12. data/gemfiles/celluloid_master.gemfile +4 -4
  13. data/gemfiles/concurrent-ruby-1.0.5.gem +0 -0
  14. data/gemfiles/concurrent-ruby-edge-0.3.1.gem +0 -0
  15. data/lib/pubnub.rb +3 -3
  16. data/lib/pubnub/client.rb +19 -16
  17. data/lib/pubnub/client/events.rb +5 -5
  18. data/lib/pubnub/client/getters_setters.rb +11 -12
  19. data/lib/pubnub/client/paged_history.rb +11 -9
  20. data/lib/pubnub/configuration.rb +1 -2
  21. data/lib/pubnub/constants.rb +47 -47
  22. data/lib/pubnub/crypto.rb +2 -2
  23. data/lib/pubnub/envelope.rb +7 -5
  24. data/lib/pubnub/error.rb +22 -15
  25. data/lib/pubnub/event.rb +24 -25
  26. data/lib/pubnub/event/formatter.rb +8 -5
  27. data/lib/pubnub/event/signature.rb +3 -3
  28. data/lib/pubnub/events/audit.rb +1 -1
  29. data/lib/pubnub/events/channel_registration.rb +10 -15
  30. data/lib/pubnub/events/delete_messages.rb +9 -9
  31. data/lib/pubnub/events/grant.rb +3 -3
  32. data/lib/pubnub/events/heartbeat.rb +4 -8
  33. data/lib/pubnub/events/here_now.rb +4 -8
  34. data/lib/pubnub/events/history.rb +10 -10
  35. data/lib/pubnub/events/leave.rb +2 -2
  36. data/lib/pubnub/events/presence.rb +1 -1
  37. data/lib/pubnub/events/publish.rb +3 -5
  38. data/lib/pubnub/events/revoke.rb +3 -3
  39. data/lib/pubnub/events/set_state.rb +3 -3
  40. data/lib/pubnub/events/state.rb +4 -6
  41. data/lib/pubnub/events/subscribe.rb +1 -1
  42. data/lib/pubnub/events/time.rb +2 -2
  43. data/lib/pubnub/events/where_now.rb +6 -6
  44. data/lib/pubnub/format.rb +73 -0
  45. data/lib/pubnub/formatter.rb +23 -21
  46. data/lib/pubnub/heart.rb +4 -4
  47. data/lib/pubnub/origin_manager.rb +3 -5
  48. data/lib/pubnub/pam.rb +5 -5
  49. data/lib/pubnub/schemas/envelope_schema.rb +1 -1
  50. data/lib/pubnub/subscribe_callback.rb +3 -3
  51. data/lib/pubnub/subscribe_event.rb +6 -10
  52. data/lib/pubnub/subscribe_event/formatter.rb +82 -80
  53. data/lib/pubnub/subscribe_event/heartbeat.rb +1 -1
  54. data/lib/pubnub/subscriber.rb +31 -32
  55. data/lib/pubnub/telemetry.rb +26 -27
  56. data/lib/pubnub/validators/audit.rb +3 -2
  57. data/lib/pubnub/validators/channel_registration.rb +6 -4
  58. data/lib/pubnub/validators/client.rb +1 -0
  59. data/lib/pubnub/validators/common_validator.rb +37 -31
  60. data/lib/pubnub/validators/delete.rb +5 -4
  61. data/lib/pubnub/validators/grant.rb +3 -2
  62. data/lib/pubnub/validators/history.rb +3 -2
  63. data/lib/pubnub/validators/leave.rb +3 -2
  64. data/lib/pubnub/validators/presence.rb +3 -2
  65. data/lib/pubnub/validators/publish.rb +15 -10
  66. data/lib/pubnub/validators/set_state.rb +0 -2
  67. data/lib/pubnub/validators/state.rb +3 -2
  68. data/lib/pubnub/version.rb +1 -1
  69. data/pubnub.gemspec +19 -18
  70. data/spec/examples/audit_examples_spec.rb +1268 -1418
  71. data/spec/examples/channel_registration_examples_spec.rb +655 -757
  72. data/spec/examples/delete_messages_examples_spec.rb +19 -21
  73. data/spec/examples/grant_examples_spec.rb +34028 -37920
  74. data/spec/examples/heartbeat_examples_spec.rb +583 -731
  75. data/spec/examples/here_now_examples_spec.rb +493 -569
  76. data/spec/examples/history_examples_spec.rb +979 -1127
  77. data/spec/examples/leave_examples_spec.rb +439 -551
  78. data/spec/examples/presence_examples_spec.rb +686 -830
  79. data/spec/examples/publish_examples_spec.rb +27223 -31547
  80. data/spec/examples/publish_with_ttl_spec.rb +11 -14
  81. data/spec/examples/revoke_examples_spec.rb +68048 -75828
  82. data/spec/examples/set_state_examples_spec.rb +295 -371
  83. data/spec/examples/state_examples_spec.rb +169 -197
  84. data/spec/examples/status_request_message_count_exceeded_spec.rb +16 -19
  85. data/spec/examples/subscribe_examples_spec.rb +43843 -52035
  86. data/spec/examples/time_examples_spec.rb +82 -98
  87. data/spec/examples/where_now_examples_spec.rb +88 -104
  88. data/spec/lib/client_spec.rb +99 -117
  89. data/spec/lib/connection_callback_spec.rb +27 -33
  90. data/spec/lib/custom_retries_examples_spec.rb +8 -11
  91. data/spec/lib/event_spec.rb +35 -42
  92. data/spec/lib/events/audit_spec.rb +19 -25
  93. data/spec/lib/events/channel_registration_spec.rb +17 -23
  94. data/spec/lib/events/delete_messages_spec.rb +14 -20
  95. data/spec/lib/events/grant_spec.rb +15 -21
  96. data/spec/lib/events/heartbeat_spec.rb +21 -27
  97. data/spec/lib/events/here_now_spec.rb +14 -20
  98. data/spec/lib/events/history_spec.rb +14 -20
  99. data/spec/lib/events/leave_spec.rb +14 -20
  100. data/spec/lib/events/presence_delta_spec.rb +15 -16
  101. data/spec/lib/events/presence_spec.rb +36 -45
  102. data/spec/lib/events/publish_spec.rb +33 -40
  103. data/spec/lib/events/revoke_spec.rb +16 -22
  104. data/spec/lib/events/state_spec.rb +16 -22
  105. data/spec/lib/events/subscribe_spec.rb +75 -85
  106. data/spec/lib/events/time_spec.rb +12 -18
  107. data/spec/lib/events/timeout_handling_spec.rb +8 -14
  108. data/spec/lib/events/where_now_spec.rb +14 -20
  109. data/spec/lib/keep_alive_spec.rb +4 -8
  110. data/spec/lib/multiple_ciphers_spec.rb +56 -60
  111. data/spec/lib/pubnub_spec.rb +10 -13
  112. data/spec/lib/signatures_spec.rb +118 -120
  113. data/spec/lib/ssl_error_spec.rb +14 -18
  114. data/spec/lib/super_admin_spec.rb +58 -66
  115. data/spec/lib/uuid_spec.rb +3 -4
  116. data/spec/spec_expectations.rb +3 -3
  117. data/spec/spec_helper.rb +29 -46
  118. metadata +52 -22
  119. data/lib/pubnub/message.rb +0 -43
@@ -1,914 +1,812 @@
1
- require 'spec_helper'
1
+ require "spec_helper"
2
2
 
3
3
  describe Pubnub::ChannelRegistration do
4
4
  around :each do |example|
5
- Celluloid.boot
6
-
7
5
  @fired = false
8
6
 
9
- @callback = ->(_envelope) do
7
+ @callback = -> (_envelope) do
10
8
  @fired = true
11
9
  end
12
10
 
13
11
  @pubnub = Pubnub.new(
14
- publish_key: 'pub-c-b42cec2f-f468-4784-8833-dd2b074538c4',
15
- subscribe_key: 'sub-c-b7fb805a-1777-11e6-be83-0619f8945a4f',
16
- uuid: 'ruby-test-uuid-client-one',
17
- auth_key: 'ruby-test-auth-client-one'
12
+ publish_key: "pub-c-b42cec2f-f468-4784-8833-dd2b074538c4",
13
+ subscribe_key: "sub-c-b7fb805a-1777-11e6-be83-0619f8945a4f",
14
+ uuid: "ruby-test-uuid-client-one",
15
+ auth_key: "ruby-test-auth-client-one",
18
16
  )
19
17
 
20
- example.run
21
-
22
- Celluloid.shutdown
18
+ example.run_with_retry retry: 10
23
19
  end
24
20
 
25
- it '__action___add___channel___demo___channel_group___demo___http_sync__true___callback__nil_' do
26
- VCR.use_cassette('examples/channel_registration/23', record: :none) do
27
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: true)
28
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
29
- expect(envelope.error?).to eq false
30
-
31
- expect(envelope.status[:code]).to eq(200)
32
- expect(envelope.status[:operation]).to eq(:channel_group_add)
33
- expect(envelope.status[:category]).to eq(:ack)
34
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
35
-
36
- expect(envelope.result[:code]).to eq(200)
37
- expect(envelope.result[:operation]).to eq(:channel_group_add)
38
-
39
- end
40
- end
41
-
42
-
43
- it '__action___add___channel___demo___channel_group___demo___http_sync__true___callback___block_' do
44
- VCR.use_cassette('examples/channel_registration/21', record: :none) do
45
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: true, &@callback)
46
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
47
- expect(envelope.error?).to eq false
48
-
49
- expect(envelope.status[:code]).to eq(200)
50
- expect(envelope.status[:operation]).to eq(:channel_group_add)
51
- expect(envelope.status[:category]).to eq(:ack)
52
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
53
-
54
- expect(envelope.result[:code]).to eq(200)
55
- expect(envelope.result[:operation]).to eq(:channel_group_add)
56
-
57
- end
58
- end
59
-
60
-
61
- it '__action___add___channel___demo___channel_group___demo___http_sync__true___callback___lambda_' do
62
- VCR.use_cassette('examples/channel_registration/22', record: :none) do
63
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: true, callback: @callback)
64
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
65
- expect(envelope.error?).to eq false
66
-
67
- expect(envelope.status[:code]).to eq(200)
68
- expect(envelope.status[:operation]).to eq(:channel_group_add)
69
- expect(envelope.status[:category]).to eq(:ack)
70
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
71
-
72
- expect(envelope.result[:code]).to eq(200)
73
- expect(envelope.result[:operation]).to eq(:channel_group_add)
74
-
75
- end
76
- end
77
-
78
-
79
- it '__action___add___channel___demo___channel_group___demo___http_sync__false___callback__nil_' do
80
- VCR.use_cassette('examples/channel_registration/20', record: :none) do
81
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: false)
82
- envelope = envelope.value
83
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
84
- expect(envelope.error?).to eq false
85
-
86
- expect(envelope.status[:code]).to eq(200)
87
- expect(envelope.status[:operation]).to eq(:channel_group_add)
88
- expect(envelope.status[:category]).to eq(:ack)
89
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
90
-
91
- expect(envelope.result[:code]).to eq(200)
92
- expect(envelope.result[:operation]).to eq(:channel_group_add)
93
-
94
- end
95
- end
96
-
97
-
98
- it '__action___add___channel___demo___channel_group___demo___http_sync__false___callback___block_' do
99
- VCR.use_cassette('examples/channel_registration/18', record: :none) do
100
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: false, &@callback)
101
- envelope = envelope.value
102
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
103
- expect(envelope.error?).to eq false
104
-
105
- expect(envelope.status[:code]).to eq(200)
106
- expect(envelope.status[:operation]).to eq(:channel_group_add)
107
- expect(envelope.status[:category]).to eq(:ack)
108
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
109
-
110
- expect(envelope.result[:code]).to eq(200)
111
- expect(envelope.result[:operation]).to eq(:channel_group_add)
112
-
113
- end
114
- end
115
-
116
-
117
- it '__action___add___channel___demo___channel_group___demo___http_sync__false___callback___lambda_' do
118
- VCR.use_cassette('examples/channel_registration/19', record: :none) do
119
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: false, callback: @callback)
120
- envelope = envelope.value
121
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
122
- expect(envelope.error?).to eq false
123
-
124
- expect(envelope.status[:code]).to eq(200)
125
- expect(envelope.status[:operation]).to eq(:channel_group_add)
126
- expect(envelope.status[:category]).to eq(:ack)
127
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
128
-
129
- expect(envelope.result[:code]).to eq(200)
130
- expect(envelope.result[:operation]).to eq(:channel_group_add)
131
-
132
- end
133
- end
134
-
135
-
136
- it '__action___add___channel___demo___channel_group___demo____http_sync__true___callback__nil_' do
137
- VCR.use_cassette('examples/channel_registration/17', record: :none) do
138
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: 'demo', http_sync: true)
139
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
140
- expect(envelope.error?).to eq false
141
-
142
- expect(envelope.status[:code]).to eq(200)
143
- expect(envelope.status[:operation]).to eq(:channel_group_add)
144
- expect(envelope.status[:category]).to eq(:ack)
145
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
146
-
147
- expect(envelope.result[:code]).to eq(200)
148
- expect(envelope.result[:operation]).to eq(:channel_group_add)
149
-
150
- end
151
- end
152
-
153
-
154
- it '__action___add___channel___demo___channel_group___demo____http_sync__true___callback___block_' do
155
- VCR.use_cassette('examples/channel_registration/15', record: :none) do
156
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: 'demo', http_sync: true, &@callback)
157
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
158
- expect(envelope.error?).to eq false
159
-
160
- expect(envelope.status[:code]).to eq(200)
161
- expect(envelope.status[:operation]).to eq(:channel_group_add)
162
- expect(envelope.status[:category]).to eq(:ack)
163
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
164
-
165
- expect(envelope.result[:code]).to eq(200)
166
- expect(envelope.result[:operation]).to eq(:channel_group_add)
167
-
168
- end
169
- end
170
-
171
-
172
- it '__action___add___channel___demo___channel_group___demo____http_sync__true___callback___lambda_' do
173
- VCR.use_cassette('examples/channel_registration/16', record: :none) do
174
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: 'demo', http_sync: true, callback: @callback)
175
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
176
- expect(envelope.error?).to eq false
177
-
178
- expect(envelope.status[:code]).to eq(200)
179
- expect(envelope.status[:operation]).to eq(:channel_group_add)
180
- expect(envelope.status[:category]).to eq(:ack)
181
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
182
-
183
- expect(envelope.result[:code]).to eq(200)
184
- expect(envelope.result[:operation]).to eq(:channel_group_add)
185
-
186
- end
187
- end
188
-
189
-
190
- it '__action___add___channel___demo___channel_group___demo____http_sync__false___callback__nil_' do
191
- VCR.use_cassette('examples/channel_registration/14', record: :none) do
192
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: 'demo', http_sync: false)
193
- envelope = envelope.value
194
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
195
- expect(envelope.error?).to eq false
196
-
197
- expect(envelope.status[:code]).to eq(200)
198
- expect(envelope.status[:operation]).to eq(:channel_group_add)
199
- expect(envelope.status[:category]).to eq(:ack)
200
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
201
-
202
- expect(envelope.result[:code]).to eq(200)
203
- expect(envelope.result[:operation]).to eq(:channel_group_add)
204
-
205
- end
206
- end
207
-
208
-
209
- it '__action___add___channel___demo___channel_group___demo____http_sync__false___callback___block_' do
210
- VCR.use_cassette('examples/channel_registration/12', record: :none) do
211
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: 'demo', http_sync: false, &@callback)
212
- envelope = envelope.value
213
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
214
- expect(envelope.error?).to eq false
215
-
216
- expect(envelope.status[:code]).to eq(200)
217
- expect(envelope.status[:operation]).to eq(:channel_group_add)
218
- expect(envelope.status[:category]).to eq(:ack)
219
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
21
+ it "__action___add___channel___demo___channel_group___demo___http_sync__true___callback__nil_" do
22
+ VCR.use_cassette("examples/channel_registration/23", record: :none) do
23
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: true)
24
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
25
+ expect(envelope.error?).to eq false
220
26
 
221
- expect(envelope.result[:code]).to eq(200)
222
- expect(envelope.result[:operation]).to eq(:channel_group_add)
223
-
224
- end
225
- end
226
-
227
-
228
- it '__action___add___channel___demo___channel_group___demo____http_sync__false___callback___lambda_' do
229
- VCR.use_cassette('examples/channel_registration/13', record: :none) do
230
- envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: 'demo', http_sync: false, callback: @callback)
231
- envelope = envelope.value
232
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
233
- expect(envelope.error?).to eq false
234
-
235
- expect(envelope.status[:code]).to eq(200)
236
- expect(envelope.status[:operation]).to eq(:channel_group_add)
237
- expect(envelope.status[:category]).to eq(:ack)
238
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
239
-
240
- expect(envelope.result[:code]).to eq(200)
241
- expect(envelope.result[:operation]).to eq(:channel_group_add)
242
-
243
- end
244
- end
245
-
246
-
247
- it '__action___add___channel___demo____channel_group___demo___http_sync__true___callback__nil_' do
248
- VCR.use_cassette('examples/channel_registration/11', record: :none) do
249
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: :demo, http_sync: true)
250
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
251
- expect(envelope.error?).to eq false
252
-
253
- expect(envelope.status[:code]).to eq(200)
254
- expect(envelope.status[:operation]).to eq(:channel_group_add)
255
- expect(envelope.status[:category]).to eq(:ack)
256
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
257
-
258
- expect(envelope.result[:code]).to eq(200)
259
- expect(envelope.result[:operation]).to eq(:channel_group_add)
260
-
261
- end
262
- end
263
-
264
-
265
- it '__action___add___channel___demo____channel_group___demo___http_sync__true___callback___block_' do
266
- VCR.use_cassette('examples/channel_registration/9', record: :none) do
267
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: :demo, http_sync: true, &@callback)
268
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
269
- expect(envelope.error?).to eq false
270
-
271
- expect(envelope.status[:code]).to eq(200)
272
- expect(envelope.status[:operation]).to eq(:channel_group_add)
273
- expect(envelope.status[:category]).to eq(:ack)
274
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
275
-
276
- expect(envelope.result[:code]).to eq(200)
277
- expect(envelope.result[:operation]).to eq(:channel_group_add)
278
-
279
- end
280
- end
281
-
282
-
283
- it '__action___add___channel___demo____channel_group___demo___http_sync__true___callback___lambda_' do
284
- VCR.use_cassette('examples/channel_registration/10', record: :none) do
285
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: :demo, http_sync: true, callback: @callback)
286
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
287
- expect(envelope.error?).to eq false
288
-
289
- expect(envelope.status[:code]).to eq(200)
290
- expect(envelope.status[:operation]).to eq(:channel_group_add)
291
- expect(envelope.status[:category]).to eq(:ack)
292
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
293
-
294
- expect(envelope.result[:code]).to eq(200)
295
- expect(envelope.result[:operation]).to eq(:channel_group_add)
296
-
297
- end
298
- end
299
-
300
-
301
- it '__action___add___channel___demo____channel_group___demo___http_sync__false___callback__nil_' do
302
- VCR.use_cassette('examples/channel_registration/8', record: :none) do
303
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: :demo, http_sync: false)
304
- envelope = envelope.value
305
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
306
- expect(envelope.error?).to eq false
307
-
308
- expect(envelope.status[:code]).to eq(200)
309
- expect(envelope.status[:operation]).to eq(:channel_group_add)
310
- expect(envelope.status[:category]).to eq(:ack)
311
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
312
-
313
- expect(envelope.result[:code]).to eq(200)
314
- expect(envelope.result[:operation]).to eq(:channel_group_add)
315
-
316
- end
317
- end
318
-
319
-
320
- it '__action___add___channel___demo____channel_group___demo___http_sync__false___callback___block_' do
321
- VCR.use_cassette('examples/channel_registration/6', record: :none) do
322
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: :demo, http_sync: false, &@callback)
323
- envelope = envelope.value
324
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
325
- expect(envelope.error?).to eq false
326
-
327
- expect(envelope.status[:code]).to eq(200)
328
- expect(envelope.status[:operation]).to eq(:channel_group_add)
329
- expect(envelope.status[:category]).to eq(:ack)
330
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
331
-
332
- expect(envelope.result[:code]).to eq(200)
333
- expect(envelope.result[:operation]).to eq(:channel_group_add)
334
-
335
- end
336
- end
337
-
338
-
339
- it '__action___add___channel___demo____channel_group___demo___http_sync__false___callback___lambda_' do
340
- VCR.use_cassette('examples/channel_registration/7', record: :none) do
341
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: :demo, http_sync: false, callback: @callback)
342
- envelope = envelope.value
343
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
344
- expect(envelope.error?).to eq false
345
-
346
- expect(envelope.status[:code]).to eq(200)
347
- expect(envelope.status[:operation]).to eq(:channel_group_add)
348
- expect(envelope.status[:category]).to eq(:ack)
349
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
350
-
351
- expect(envelope.result[:code]).to eq(200)
352
- expect(envelope.result[:operation]).to eq(:channel_group_add)
353
-
354
- end
355
- end
356
-
357
-
358
- it '__action___add___channel___demo____channel_group___demo____http_sync__true___callback__nil_' do
359
- VCR.use_cassette('examples/channel_registration/5', record: :none) do
360
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: 'demo', http_sync: true)
361
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
362
- expect(envelope.error?).to eq false
363
-
364
- expect(envelope.status[:code]).to eq(200)
365
- expect(envelope.status[:operation]).to eq(:channel_group_add)
366
- expect(envelope.status[:category]).to eq(:ack)
367
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
368
-
369
- expect(envelope.result[:code]).to eq(200)
370
- expect(envelope.result[:operation]).to eq(:channel_group_add)
371
-
372
- end
373
- end
374
-
375
-
376
- it '__action___add___channel___demo____channel_group___demo____http_sync__true___callback___block_' do
377
- VCR.use_cassette('examples/channel_registration/3', record: :none) do
378
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: 'demo', http_sync: true, &@callback)
379
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
380
- expect(envelope.error?).to eq false
381
-
382
- expect(envelope.status[:code]).to eq(200)
383
- expect(envelope.status[:operation]).to eq(:channel_group_add)
384
- expect(envelope.status[:category]).to eq(:ack)
385
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
386
-
387
- expect(envelope.result[:code]).to eq(200)
388
- expect(envelope.result[:operation]).to eq(:channel_group_add)
389
-
390
- end
391
- end
27
+ expect(envelope.status[:code]).to eq(200)
28
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
29
+ expect(envelope.status[:category]).to eq(:ack)
30
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
392
31
 
32
+ expect(envelope.result[:code]).to eq(200)
33
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
34
+ end
35
+ end
393
36
 
394
- it '__action___add___channel___demo____channel_group___demo____http_sync__true___callback___lambda_' do
395
- VCR.use_cassette('examples/channel_registration/4', record: :none) do
396
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: 'demo', http_sync: true, callback: @callback)
397
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
398
- expect(envelope.error?).to eq false
37
+ it "__action___add___channel___demo___channel_group___demo___http_sync__true___callback___block_" do
38
+ VCR.use_cassette("examples/channel_registration/21", record: :none) do
39
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: true, &@callback)
40
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
41
+ expect(envelope.error?).to eq false
399
42
 
400
- expect(envelope.status[:code]).to eq(200)
401
- expect(envelope.status[:operation]).to eq(:channel_group_add)
402
- expect(envelope.status[:category]).to eq(:ack)
403
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
43
+ expect(envelope.status[:code]).to eq(200)
44
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
45
+ expect(envelope.status[:category]).to eq(:ack)
46
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
404
47
 
405
- expect(envelope.result[:code]).to eq(200)
406
- expect(envelope.result[:operation]).to eq(:channel_group_add)
48
+ expect(envelope.result[:code]).to eq(200)
49
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
50
+ end
51
+ end
407
52
 
408
- end
409
- end
53
+ it "__action___add___channel___demo___channel_group___demo___http_sync__true___callback___lambda_" do
54
+ VCR.use_cassette("examples/channel_registration/22", record: :none) do
55
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: true, callback: @callback)
56
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
57
+ expect(envelope.error?).to eq false
410
58
 
59
+ expect(envelope.status[:code]).to eq(200)
60
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
61
+ expect(envelope.status[:category]).to eq(:ack)
62
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
411
63
 
412
- it '__action___add___channel___demo____channel_group___demo____http_sync__false___callback__nil_' do
413
- VCR.use_cassette('examples/channel_registration/2', record: :none) do
414
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: 'demo', http_sync: false)
415
- envelope = envelope.value
416
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
417
- expect(envelope.error?).to eq false
64
+ expect(envelope.result[:code]).to eq(200)
65
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
66
+ end
67
+ end
418
68
 
419
- expect(envelope.status[:code]).to eq(200)
420
- expect(envelope.status[:operation]).to eq(:channel_group_add)
421
- expect(envelope.status[:category]).to eq(:ack)
422
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
69
+ it "__action___add___channel___demo___channel_group___demo___http_sync__false___callback__nil_" do
70
+ VCR.use_cassette("examples/channel_registration/20", record: :none) do
71
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: false)
72
+ envelope = envelope.value
73
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
74
+ expect(envelope.error?).to eq false
423
75
 
424
- expect(envelope.result[:code]).to eq(200)
425
- expect(envelope.result[:operation]).to eq(:channel_group_add)
76
+ expect(envelope.status[:code]).to eq(200)
77
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
78
+ expect(envelope.status[:category]).to eq(:ack)
79
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
426
80
 
427
- end
428
- end
81
+ expect(envelope.result[:code]).to eq(200)
82
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
83
+ end
84
+ end
429
85
 
86
+ it "__action___add___channel___demo___channel_group___demo___http_sync__false___callback___block_" do
87
+ VCR.use_cassette("examples/channel_registration/18", record: :none) do
88
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: false, &@callback)
89
+ envelope = envelope.value
90
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
91
+ expect(envelope.error?).to eq false
430
92
 
431
- it '__action___add___channel___demo____channel_group___demo____http_sync__false___callback___block_' do
432
- VCR.use_cassette('examples/channel_registration/0', record: :none) do
433
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: 'demo', http_sync: false, &@callback)
434
- envelope = envelope.value
435
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
436
- expect(envelope.error?).to eq false
93
+ expect(envelope.status[:code]).to eq(200)
94
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
95
+ expect(envelope.status[:category]).to eq(:ack)
96
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
437
97
 
438
- expect(envelope.status[:code]).to eq(200)
439
- expect(envelope.status[:operation]).to eq(:channel_group_add)
440
- expect(envelope.status[:category]).to eq(:ack)
441
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
98
+ expect(envelope.result[:code]).to eq(200)
99
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
100
+ end
101
+ end
442
102
 
443
- expect(envelope.result[:code]).to eq(200)
444
- expect(envelope.result[:operation]).to eq(:channel_group_add)
103
+ it "__action___add___channel___demo___channel_group___demo___http_sync__false___callback___lambda_" do
104
+ VCR.use_cassette("examples/channel_registration/19", record: :none) do
105
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: :demo, http_sync: false, callback: @callback)
106
+ envelope = envelope.value
107
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
108
+ expect(envelope.error?).to eq false
445
109
 
446
- end
447
- end
110
+ expect(envelope.status[:code]).to eq(200)
111
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
112
+ expect(envelope.status[:category]).to eq(:ack)
113
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
448
114
 
115
+ expect(envelope.result[:code]).to eq(200)
116
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
117
+ end
118
+ end
449
119
 
450
- it '__action___add___channel___demo____channel_group___demo____http_sync__false___callback___lambda_' do
451
- VCR.use_cassette('examples/channel_registration/1', record: :none) do
452
- envelope = @pubnub.channel_registration(action: :add, channel: 'demo', channel_group: 'demo', http_sync: false, callback: @callback)
453
- envelope = envelope.value
454
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
455
- expect(envelope.error?).to eq false
120
+ it "__action___add___channel___demo___channel_group___demo____http_sync__true___callback__nil_" do
121
+ VCR.use_cassette("examples/channel_registration/17", record: :none) do
122
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: "demo", http_sync: true)
123
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
124
+ expect(envelope.error?).to eq false
456
125
 
457
- expect(envelope.status[:code]).to eq(200)
458
- expect(envelope.status[:operation]).to eq(:channel_group_add)
459
- expect(envelope.status[:category]).to eq(:ack)
460
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
126
+ expect(envelope.status[:code]).to eq(200)
127
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
128
+ expect(envelope.status[:category]).to eq(:ack)
129
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
461
130
 
462
- expect(envelope.result[:code]).to eq(200)
463
- expect(envelope.result[:operation]).to eq(:channel_group_add)
131
+ expect(envelope.result[:code]).to eq(200)
132
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
133
+ end
134
+ end
464
135
 
465
- end
466
- end
136
+ it "__action___add___channel___demo___channel_group___demo____http_sync__true___callback___block_" do
137
+ VCR.use_cassette("examples/channel_registration/15", record: :none) do
138
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: "demo", http_sync: true, &@callback)
139
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
140
+ expect(envelope.error?).to eq false
467
141
 
142
+ expect(envelope.status[:code]).to eq(200)
143
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
144
+ expect(envelope.status[:category]).to eq(:ack)
145
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
468
146
 
469
- it '__action___remove___channel___demo___channel_group___demo___http_sync__true___callback__nil_' do
470
- VCR.use_cassette('examples/channel_registration/47', record: :none) do
471
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: true)
472
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
473
- expect(envelope.error?).to eq false
147
+ expect(envelope.result[:code]).to eq(200)
148
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
149
+ end
150
+ end
474
151
 
475
- expect(envelope.status[:code]).to eq(200)
476
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
477
- expect(envelope.status[:category]).to eq(:ack)
478
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
152
+ it "__action___add___channel___demo___channel_group___demo____http_sync__true___callback___lambda_" do
153
+ VCR.use_cassette("examples/channel_registration/16", record: :none) do
154
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: "demo", http_sync: true, callback: @callback)
155
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
156
+ expect(envelope.error?).to eq false
479
157
 
480
- expect(envelope.result[:code]).to eq(200)
481
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
158
+ expect(envelope.status[:code]).to eq(200)
159
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
160
+ expect(envelope.status[:category]).to eq(:ack)
161
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
482
162
 
483
- end
484
- end
163
+ expect(envelope.result[:code]).to eq(200)
164
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
165
+ end
166
+ end
485
167
 
168
+ it "__action___add___channel___demo___channel_group___demo____http_sync__false___callback__nil_" do
169
+ VCR.use_cassette("examples/channel_registration/14", record: :none) do
170
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: "demo", http_sync: false)
171
+ envelope = envelope.value
172
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
173
+ expect(envelope.error?).to eq false
486
174
 
487
- it '__action___remove___channel___demo___channel_group___demo___http_sync__true___callback___block_' do
488
- VCR.use_cassette('examples/channel_registration/45', record: :none) do
489
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: true, &@callback)
490
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
491
- expect(envelope.error?).to eq false
175
+ expect(envelope.status[:code]).to eq(200)
176
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
177
+ expect(envelope.status[:category]).to eq(:ack)
178
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
492
179
 
493
- expect(envelope.status[:code]).to eq(200)
494
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
495
- expect(envelope.status[:category]).to eq(:ack)
496
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
180
+ expect(envelope.result[:code]).to eq(200)
181
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
182
+ end
183
+ end
497
184
 
498
- expect(envelope.result[:code]).to eq(200)
499
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
185
+ it "__action___add___channel___demo___channel_group___demo____http_sync__false___callback___block_" do
186
+ VCR.use_cassette("examples/channel_registration/12", record: :none) do
187
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: "demo", http_sync: false, &@callback)
188
+ envelope = envelope.value
189
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
190
+ expect(envelope.error?).to eq false
500
191
 
501
- end
502
- end
192
+ expect(envelope.status[:code]).to eq(200)
193
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
194
+ expect(envelope.status[:category]).to eq(:ack)
195
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
503
196
 
197
+ expect(envelope.result[:code]).to eq(200)
198
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
199
+ end
200
+ end
504
201
 
505
- it '__action___remove___channel___demo___channel_group___demo___http_sync__true___callback___lambda_' do
506
- VCR.use_cassette('examples/channel_registration/46', record: :none) do
507
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: true, callback: @callback)
508
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
509
- expect(envelope.error?).to eq false
202
+ it "__action___add___channel___demo___channel_group___demo____http_sync__false___callback___lambda_" do
203
+ VCR.use_cassette("examples/channel_registration/13", record: :none) do
204
+ envelope = @pubnub.channel_registration(action: :add, channel: :demo, channel_group: "demo", http_sync: false, callback: @callback)
205
+ envelope = envelope.value
206
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
207
+ expect(envelope.error?).to eq false
510
208
 
511
- expect(envelope.status[:code]).to eq(200)
512
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
513
- expect(envelope.status[:category]).to eq(:ack)
514
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
209
+ expect(envelope.status[:code]).to eq(200)
210
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
211
+ expect(envelope.status[:category]).to eq(:ack)
212
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
515
213
 
516
- expect(envelope.result[:code]).to eq(200)
517
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
214
+ expect(envelope.result[:code]).to eq(200)
215
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
216
+ end
217
+ end
518
218
 
519
- end
520
- end
219
+ it "__action___add___channel___demo____channel_group___demo___http_sync__true___callback__nil_" do
220
+ VCR.use_cassette("examples/channel_registration/11", record: :none) do
221
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: :demo, http_sync: true)
222
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
223
+ expect(envelope.error?).to eq false
521
224
 
225
+ expect(envelope.status[:code]).to eq(200)
226
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
227
+ expect(envelope.status[:category]).to eq(:ack)
228
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
522
229
 
523
- it '__action___remove___channel___demo___channel_group___demo___http_sync__false___callback__nil_' do
524
- VCR.use_cassette('examples/channel_registration/44', record: :none) do
525
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: false)
526
- envelope = envelope.value
527
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
528
- expect(envelope.error?).to eq false
230
+ expect(envelope.result[:code]).to eq(200)
231
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
232
+ end
233
+ end
529
234
 
530
- expect(envelope.status[:code]).to eq(200)
531
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
532
- expect(envelope.status[:category]).to eq(:ack)
533
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
235
+ it "__action___add___channel___demo____channel_group___demo___http_sync__true___callback___block_" do
236
+ VCR.use_cassette("examples/channel_registration/9", record: :none) do
237
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: :demo, http_sync: true, &@callback)
238
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
239
+ expect(envelope.error?).to eq false
534
240
 
535
- expect(envelope.result[:code]).to eq(200)
536
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
241
+ expect(envelope.status[:code]).to eq(200)
242
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
243
+ expect(envelope.status[:category]).to eq(:ack)
244
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
537
245
 
538
- end
539
- end
246
+ expect(envelope.result[:code]).to eq(200)
247
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
248
+ end
249
+ end
540
250
 
251
+ it "__action___add___channel___demo____channel_group___demo___http_sync__true___callback___lambda_" do
252
+ VCR.use_cassette("examples/channel_registration/10", record: :none) do
253
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: :demo, http_sync: true, callback: @callback)
254
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
255
+ expect(envelope.error?).to eq false
541
256
 
542
- it '__action___remove___channel___demo___channel_group___demo___http_sync__false___callback___block_' do
543
- VCR.use_cassette('examples/channel_registration/42', record: :none) do
544
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: false, &@callback)
545
- envelope = envelope.value
546
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
547
- expect(envelope.error?).to eq false
257
+ expect(envelope.status[:code]).to eq(200)
258
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
259
+ expect(envelope.status[:category]).to eq(:ack)
260
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
548
261
 
549
- expect(envelope.status[:code]).to eq(200)
550
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
551
- expect(envelope.status[:category]).to eq(:ack)
552
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
262
+ expect(envelope.result[:code]).to eq(200)
263
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
264
+ end
265
+ end
553
266
 
554
- expect(envelope.result[:code]).to eq(200)
555
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
267
+ it "__action___add___channel___demo____channel_group___demo___http_sync__false___callback__nil_" do
268
+ VCR.use_cassette("examples/channel_registration/8", record: :none) do
269
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: :demo, http_sync: false)
270
+ envelope = envelope.value
271
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
272
+ expect(envelope.error?).to eq false
556
273
 
557
- end
558
- end
274
+ expect(envelope.status[:code]).to eq(200)
275
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
276
+ expect(envelope.status[:category]).to eq(:ack)
277
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
559
278
 
279
+ expect(envelope.result[:code]).to eq(200)
280
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
281
+ end
282
+ end
560
283
 
561
- it '__action___remove___channel___demo___channel_group___demo___http_sync__false___callback___lambda_' do
562
- VCR.use_cassette('examples/channel_registration/43', record: :none) do
563
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: false, callback: @callback)
564
- envelope = envelope.value
565
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
566
- expect(envelope.error?).to eq false
284
+ it "__action___add___channel___demo____channel_group___demo___http_sync__false___callback___block_" do
285
+ VCR.use_cassette("examples/channel_registration/6", record: :none) do
286
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: :demo, http_sync: false, &@callback)
287
+ envelope = envelope.value
288
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
289
+ expect(envelope.error?).to eq false
567
290
 
568
- expect(envelope.status[:code]).to eq(200)
569
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
570
- expect(envelope.status[:category]).to eq(:ack)
571
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
291
+ expect(envelope.status[:code]).to eq(200)
292
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
293
+ expect(envelope.status[:category]).to eq(:ack)
294
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
572
295
 
573
- expect(envelope.result[:code]).to eq(200)
574
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
296
+ expect(envelope.result[:code]).to eq(200)
297
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
298
+ end
299
+ end
575
300
 
576
- end
577
- end
301
+ it "__action___add___channel___demo____channel_group___demo___http_sync__false___callback___lambda_" do
302
+ VCR.use_cassette("examples/channel_registration/7", record: :none) do
303
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: :demo, http_sync: false, callback: @callback)
304
+ envelope = envelope.value
305
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
306
+ expect(envelope.error?).to eq false
578
307
 
308
+ expect(envelope.status[:code]).to eq(200)
309
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
310
+ expect(envelope.status[:category]).to eq(:ack)
311
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
579
312
 
580
- it '__action___remove___channel___demo___channel_group___demo____http_sync__true___callback__nil_' do
581
- VCR.use_cassette('examples/channel_registration/41', record: :none) do
582
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: 'demo', http_sync: true)
583
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
584
- expect(envelope.error?).to eq false
313
+ expect(envelope.result[:code]).to eq(200)
314
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
315
+ end
316
+ end
585
317
 
586
- expect(envelope.status[:code]).to eq(200)
587
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
588
- expect(envelope.status[:category]).to eq(:ack)
589
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
318
+ it "__action___add___channel___demo____channel_group___demo____http_sync__true___callback__nil_" do
319
+ VCR.use_cassette("examples/channel_registration/5", record: :none) do
320
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: "demo", http_sync: true)
321
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
322
+ expect(envelope.error?).to eq false
590
323
 
591
- expect(envelope.result[:code]).to eq(200)
592
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
324
+ expect(envelope.status[:code]).to eq(200)
325
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
326
+ expect(envelope.status[:category]).to eq(:ack)
327
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
593
328
 
594
- end
595
- end
329
+ expect(envelope.result[:code]).to eq(200)
330
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
331
+ end
332
+ end
596
333
 
334
+ it "__action___add___channel___demo____channel_group___demo____http_sync__true___callback___block_" do
335
+ VCR.use_cassette("examples/channel_registration/3", record: :none) do
336
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: "demo", http_sync: true, &@callback)
337
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
338
+ expect(envelope.error?).to eq false
597
339
 
598
- it '__action___remove___channel___demo___channel_group___demo____http_sync__true___callback___block_' do
599
- VCR.use_cassette('examples/channel_registration/39', record: :none) do
600
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: 'demo', http_sync: true, &@callback)
601
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
602
- expect(envelope.error?).to eq false
340
+ expect(envelope.status[:code]).to eq(200)
341
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
342
+ expect(envelope.status[:category]).to eq(:ack)
343
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
603
344
 
604
- expect(envelope.status[:code]).to eq(200)
605
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
606
- expect(envelope.status[:category]).to eq(:ack)
607
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
345
+ expect(envelope.result[:code]).to eq(200)
346
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
347
+ end
348
+ end
608
349
 
609
- expect(envelope.result[:code]).to eq(200)
610
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
350
+ it "__action___add___channel___demo____channel_group___demo____http_sync__true___callback___lambda_" do
351
+ VCR.use_cassette("examples/channel_registration/4", record: :none) do
352
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: "demo", http_sync: true, callback: @callback)
353
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
354
+ expect(envelope.error?).to eq false
611
355
 
612
- end
613
- end
356
+ expect(envelope.status[:code]).to eq(200)
357
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
358
+ expect(envelope.status[:category]).to eq(:ack)
359
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
614
360
 
361
+ expect(envelope.result[:code]).to eq(200)
362
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
363
+ end
364
+ end
615
365
 
616
- it '__action___remove___channel___demo___channel_group___demo____http_sync__true___callback___lambda_' do
617
- VCR.use_cassette('examples/channel_registration/40', record: :none) do
618
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: 'demo', http_sync: true, callback: @callback)
619
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
620
- expect(envelope.error?).to eq false
366
+ it "__action___add___channel___demo____channel_group___demo____http_sync__false___callback__nil_" do
367
+ VCR.use_cassette("examples/channel_registration/2", record: :none) do
368
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: "demo", http_sync: false)
369
+ envelope = envelope.value
370
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
371
+ expect(envelope.error?).to eq false
621
372
 
622
- expect(envelope.status[:code]).to eq(200)
623
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
624
- expect(envelope.status[:category]).to eq(:ack)
625
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
373
+ expect(envelope.status[:code]).to eq(200)
374
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
375
+ expect(envelope.status[:category]).to eq(:ack)
376
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
626
377
 
627
- expect(envelope.result[:code]).to eq(200)
628
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
378
+ expect(envelope.result[:code]).to eq(200)
379
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
380
+ end
381
+ end
629
382
 
630
- end
631
- end
383
+ it "__action___add___channel___demo____channel_group___demo____http_sync__false___callback___block_" do
384
+ VCR.use_cassette("examples/channel_registration/0", record: :none) do
385
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: "demo", http_sync: false, &@callback)
386
+ envelope = envelope.value
387
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
388
+ expect(envelope.error?).to eq false
632
389
 
390
+ expect(envelope.status[:code]).to eq(200)
391
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
392
+ expect(envelope.status[:category]).to eq(:ack)
393
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
633
394
 
634
- it '__action___remove___channel___demo___channel_group___demo____http_sync__false___callback__nil_' do
635
- VCR.use_cassette('examples/channel_registration/38', record: :none) do
636
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: 'demo', http_sync: false)
637
- envelope = envelope.value
638
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
639
- expect(envelope.error?).to eq false
395
+ expect(envelope.result[:code]).to eq(200)
396
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
397
+ end
398
+ end
640
399
 
641
- expect(envelope.status[:code]).to eq(200)
642
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
643
- expect(envelope.status[:category]).to eq(:ack)
644
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
400
+ it "__action___add___channel___demo____channel_group___demo____http_sync__false___callback___lambda_" do
401
+ VCR.use_cassette("examples/channel_registration/1", record: :none) do
402
+ envelope = @pubnub.channel_registration(action: :add, channel: "demo", channel_group: "demo", http_sync: false, callback: @callback)
403
+ envelope = envelope.value
404
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
405
+ expect(envelope.error?).to eq false
645
406
 
646
- expect(envelope.result[:code]).to eq(200)
647
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
407
+ expect(envelope.status[:code]).to eq(200)
408
+ expect(envelope.status[:operation]).to eq(:channel_group_add)
409
+ expect(envelope.status[:category]).to eq(:ack)
410
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
648
411
 
649
- end
650
- end
412
+ expect(envelope.result[:code]).to eq(200)
413
+ expect(envelope.result[:operation]).to eq(:channel_group_add)
414
+ end
415
+ end
651
416
 
417
+ it "__action___remove___channel___demo___channel_group___demo___http_sync__true___callback__nil_" do
418
+ VCR.use_cassette("examples/channel_registration/47", record: :none) do
419
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: true)
420
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
421
+ expect(envelope.error?).to eq false
652
422
 
653
- it '__action___remove___channel___demo___channel_group___demo____http_sync__false___callback___block_' do
654
- VCR.use_cassette('examples/channel_registration/36', record: :none) do
655
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: 'demo', http_sync: false, &@callback)
656
- envelope = envelope.value
657
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
658
- expect(envelope.error?).to eq false
423
+ expect(envelope.status[:code]).to eq(200)
424
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
425
+ expect(envelope.status[:category]).to eq(:ack)
426
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
659
427
 
660
- expect(envelope.status[:code]).to eq(200)
661
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
662
- expect(envelope.status[:category]).to eq(:ack)
663
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
428
+ expect(envelope.result[:code]).to eq(200)
429
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
430
+ end
431
+ end
664
432
 
665
- expect(envelope.result[:code]).to eq(200)
666
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
433
+ it "__action___remove___channel___demo___channel_group___demo___http_sync__true___callback___block_" do
434
+ VCR.use_cassette("examples/channel_registration/45", record: :none) do
435
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: true, &@callback)
436
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
437
+ expect(envelope.error?).to eq false
667
438
 
668
- end
669
- end
439
+ expect(envelope.status[:code]).to eq(200)
440
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
441
+ expect(envelope.status[:category]).to eq(:ack)
442
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
670
443
 
444
+ expect(envelope.result[:code]).to eq(200)
445
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
446
+ end
447
+ end
671
448
 
672
- it '__action___remove___channel___demo___channel_group___demo____http_sync__false___callback___lambda_' do
673
- VCR.use_cassette('examples/channel_registration/37', record: :none) do
674
- envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: 'demo', http_sync: false, callback: @callback)
675
- envelope = envelope.value
676
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
677
- expect(envelope.error?).to eq false
449
+ it "__action___remove___channel___demo___channel_group___demo___http_sync__true___callback___lambda_" do
450
+ VCR.use_cassette("examples/channel_registration/46", record: :none) do
451
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: true, callback: @callback)
452
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
453
+ expect(envelope.error?).to eq false
678
454
 
679
- expect(envelope.status[:code]).to eq(200)
680
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
681
- expect(envelope.status[:category]).to eq(:ack)
682
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
455
+ expect(envelope.status[:code]).to eq(200)
456
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
457
+ expect(envelope.status[:category]).to eq(:ack)
458
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
683
459
 
684
- expect(envelope.result[:code]).to eq(200)
685
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
460
+ expect(envelope.result[:code]).to eq(200)
461
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
462
+ end
463
+ end
686
464
 
687
- end
688
- end
465
+ it "__action___remove___channel___demo___channel_group___demo___http_sync__false___callback__nil_" do
466
+ VCR.use_cassette("examples/channel_registration/44", record: :none) do
467
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: false)
468
+ envelope = envelope.value
469
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
470
+ expect(envelope.error?).to eq false
689
471
 
472
+ expect(envelope.status[:code]).to eq(200)
473
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
474
+ expect(envelope.status[:category]).to eq(:ack)
475
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
690
476
 
691
- it '__action___remove___channel___demo____channel_group___demo___http_sync__true___callback__nil_' do
692
- VCR.use_cassette('examples/channel_registration/35', record: :none) do
693
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: :demo, http_sync: true)
694
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
695
- expect(envelope.error?).to eq false
477
+ expect(envelope.result[:code]).to eq(200)
478
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
479
+ end
480
+ end
696
481
 
697
- expect(envelope.status[:code]).to eq(200)
698
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
699
- expect(envelope.status[:category]).to eq(:ack)
700
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
482
+ it "__action___remove___channel___demo___channel_group___demo___http_sync__false___callback___block_" do
483
+ VCR.use_cassette("examples/channel_registration/42", record: :none) do
484
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: false, &@callback)
485
+ envelope = envelope.value
486
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
487
+ expect(envelope.error?).to eq false
701
488
 
702
- expect(envelope.result[:code]).to eq(200)
703
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
489
+ expect(envelope.status[:code]).to eq(200)
490
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
491
+ expect(envelope.status[:category]).to eq(:ack)
492
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
704
493
 
705
- end
706
- end
494
+ expect(envelope.result[:code]).to eq(200)
495
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
496
+ end
497
+ end
707
498
 
499
+ it "__action___remove___channel___demo___channel_group___demo___http_sync__false___callback___lambda_" do
500
+ VCR.use_cassette("examples/channel_registration/43", record: :none) do
501
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: :demo, http_sync: false, callback: @callback)
502
+ envelope = envelope.value
503
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
504
+ expect(envelope.error?).to eq false
708
505
 
709
- it '__action___remove___channel___demo____channel_group___demo___http_sync__true___callback___block_' do
710
- VCR.use_cassette('examples/channel_registration/33', record: :none) do
711
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: :demo, http_sync: true, &@callback)
712
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
713
- expect(envelope.error?).to eq false
506
+ expect(envelope.status[:code]).to eq(200)
507
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
508
+ expect(envelope.status[:category]).to eq(:ack)
509
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
714
510
 
715
- expect(envelope.status[:code]).to eq(200)
716
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
717
- expect(envelope.status[:category]).to eq(:ack)
718
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
511
+ expect(envelope.result[:code]).to eq(200)
512
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
513
+ end
514
+ end
719
515
 
720
- expect(envelope.result[:code]).to eq(200)
721
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
516
+ it "__action___remove___channel___demo___channel_group___demo____http_sync__true___callback__nil_" do
517
+ VCR.use_cassette("examples/channel_registration/41", record: :none) do
518
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: "demo", http_sync: true)
519
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
520
+ expect(envelope.error?).to eq false
722
521
 
723
- end
724
- end
522
+ expect(envelope.status[:code]).to eq(200)
523
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
524
+ expect(envelope.status[:category]).to eq(:ack)
525
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
725
526
 
527
+ expect(envelope.result[:code]).to eq(200)
528
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
529
+ end
530
+ end
726
531
 
727
- it '__action___remove___channel___demo____channel_group___demo___http_sync__true___callback___lambda_' do
728
- VCR.use_cassette('examples/channel_registration/34', record: :none) do
729
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: :demo, http_sync: true, callback: @callback)
730
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
731
- expect(envelope.error?).to eq false
532
+ it "__action___remove___channel___demo___channel_group___demo____http_sync__true___callback___block_" do
533
+ VCR.use_cassette("examples/channel_registration/39", record: :none) do
534
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: "demo", http_sync: true, &@callback)
535
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
536
+ expect(envelope.error?).to eq false
732
537
 
733
- expect(envelope.status[:code]).to eq(200)
734
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
735
- expect(envelope.status[:category]).to eq(:ack)
736
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
538
+ expect(envelope.status[:code]).to eq(200)
539
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
540
+ expect(envelope.status[:category]).to eq(:ack)
541
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
737
542
 
738
- expect(envelope.result[:code]).to eq(200)
739
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
543
+ expect(envelope.result[:code]).to eq(200)
544
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
545
+ end
546
+ end
740
547
 
741
- end
742
- end
548
+ it "__action___remove___channel___demo___channel_group___demo____http_sync__true___callback___lambda_" do
549
+ VCR.use_cassette("examples/channel_registration/40", record: :none) do
550
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: "demo", http_sync: true, callback: @callback)
551
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
552
+ expect(envelope.error?).to eq false
743
553
 
554
+ expect(envelope.status[:code]).to eq(200)
555
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
556
+ expect(envelope.status[:category]).to eq(:ack)
557
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
744
558
 
745
- it '__action___remove___channel___demo____channel_group___demo___http_sync__false___callback__nil_' do
746
- VCR.use_cassette('examples/channel_registration/32', record: :none) do
747
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: :demo, http_sync: false)
748
- envelope = envelope.value
749
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
750
- expect(envelope.error?).to eq false
559
+ expect(envelope.result[:code]).to eq(200)
560
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
561
+ end
562
+ end
751
563
 
752
- expect(envelope.status[:code]).to eq(200)
753
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
754
- expect(envelope.status[:category]).to eq(:ack)
755
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
564
+ it "__action___remove___channel___demo___channel_group___demo____http_sync__false___callback__nil_" do
565
+ VCR.use_cassette("examples/channel_registration/38", record: :none) do
566
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: "demo", http_sync: false)
567
+ envelope = envelope.value
568
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
569
+ expect(envelope.error?).to eq false
756
570
 
757
- expect(envelope.result[:code]).to eq(200)
758
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
571
+ expect(envelope.status[:code]).to eq(200)
572
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
573
+ expect(envelope.status[:category]).to eq(:ack)
574
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
759
575
 
760
- end
761
- end
576
+ expect(envelope.result[:code]).to eq(200)
577
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
578
+ end
579
+ end
762
580
 
581
+ it "__action___remove___channel___demo___channel_group___demo____http_sync__false___callback___block_" do
582
+ VCR.use_cassette("examples/channel_registration/36", record: :none) do
583
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: "demo", http_sync: false, &@callback)
584
+ envelope = envelope.value
585
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
586
+ expect(envelope.error?).to eq false
763
587
 
764
- it '__action___remove___channel___demo____channel_group___demo___http_sync__false___callback___block_' do
765
- VCR.use_cassette('examples/channel_registration/30', record: :none) do
766
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: :demo, http_sync: false, &@callback)
767
- envelope = envelope.value
768
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
769
- expect(envelope.error?).to eq false
588
+ expect(envelope.status[:code]).to eq(200)
589
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
590
+ expect(envelope.status[:category]).to eq(:ack)
591
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
770
592
 
771
- expect(envelope.status[:code]).to eq(200)
772
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
773
- expect(envelope.status[:category]).to eq(:ack)
774
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
593
+ expect(envelope.result[:code]).to eq(200)
594
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
595
+ end
596
+ end
775
597
 
776
- expect(envelope.result[:code]).to eq(200)
777
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
598
+ it "__action___remove___channel___demo___channel_group___demo____http_sync__false___callback___lambda_" do
599
+ VCR.use_cassette("examples/channel_registration/37", record: :none) do
600
+ envelope = @pubnub.channel_registration(action: :remove, channel: :demo, channel_group: "demo", http_sync: false, callback: @callback)
601
+ envelope = envelope.value
602
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
603
+ expect(envelope.error?).to eq false
778
604
 
779
- end
780
- end
605
+ expect(envelope.status[:code]).to eq(200)
606
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
607
+ expect(envelope.status[:category]).to eq(:ack)
608
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
781
609
 
610
+ expect(envelope.result[:code]).to eq(200)
611
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
612
+ end
613
+ end
782
614
 
783
- it '__action___remove___channel___demo____channel_group___demo___http_sync__false___callback___lambda_' do
784
- VCR.use_cassette('examples/channel_registration/31', record: :none) do
785
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: :demo, http_sync: false, callback: @callback)
786
- envelope = envelope.value
787
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
788
- expect(envelope.error?).to eq false
615
+ it "__action___remove___channel___demo____channel_group___demo___http_sync__true___callback__nil_" do
616
+ VCR.use_cassette("examples/channel_registration/35", record: :none) do
617
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: :demo, http_sync: true)
618
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
619
+ expect(envelope.error?).to eq false
789
620
 
790
- expect(envelope.status[:code]).to eq(200)
791
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
792
- expect(envelope.status[:category]).to eq(:ack)
793
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
621
+ expect(envelope.status[:code]).to eq(200)
622
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
623
+ expect(envelope.status[:category]).to eq(:ack)
624
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
794
625
 
795
- expect(envelope.result[:code]).to eq(200)
796
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
626
+ expect(envelope.result[:code]).to eq(200)
627
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
628
+ end
629
+ end
797
630
 
798
- end
799
- end
631
+ it "__action___remove___channel___demo____channel_group___demo___http_sync__true___callback___block_" do
632
+ VCR.use_cassette("examples/channel_registration/33", record: :none) do
633
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: :demo, http_sync: true, &@callback)
634
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
635
+ expect(envelope.error?).to eq false
800
636
 
637
+ expect(envelope.status[:code]).to eq(200)
638
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
639
+ expect(envelope.status[:category]).to eq(:ack)
640
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
801
641
 
802
- it '__action___remove___channel___demo____channel_group___demo____http_sync__true___callback__nil_' do
803
- VCR.use_cassette('examples/channel_registration/29', record: :none) do
804
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: 'demo', http_sync: true)
805
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
806
- expect(envelope.error?).to eq false
642
+ expect(envelope.result[:code]).to eq(200)
643
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
644
+ end
645
+ end
807
646
 
808
- expect(envelope.status[:code]).to eq(200)
809
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
810
- expect(envelope.status[:category]).to eq(:ack)
811
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
647
+ it "__action___remove___channel___demo____channel_group___demo___http_sync__true___callback___lambda_" do
648
+ VCR.use_cassette("examples/channel_registration/34", record: :none) do
649
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: :demo, http_sync: true, callback: @callback)
650
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
651
+ expect(envelope.error?).to eq false
812
652
 
813
- expect(envelope.result[:code]).to eq(200)
814
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
653
+ expect(envelope.status[:code]).to eq(200)
654
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
655
+ expect(envelope.status[:category]).to eq(:ack)
656
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
815
657
 
816
- end
817
- end
658
+ expect(envelope.result[:code]).to eq(200)
659
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
660
+ end
661
+ end
818
662
 
663
+ it "__action___remove___channel___demo____channel_group___demo___http_sync__false___callback__nil_" do
664
+ VCR.use_cassette("examples/channel_registration/32", record: :none) do
665
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: :demo, http_sync: false)
666
+ envelope = envelope.value
667
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
668
+ expect(envelope.error?).to eq false
819
669
 
820
- it '__action___remove___channel___demo____channel_group___demo____http_sync__true___callback___block_' do
821
- VCR.use_cassette('examples/channel_registration/27', record: :none) do
822
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: 'demo', http_sync: true, &@callback)
823
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
824
- expect(envelope.error?).to eq false
670
+ expect(envelope.status[:code]).to eq(200)
671
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
672
+ expect(envelope.status[:category]).to eq(:ack)
673
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
825
674
 
826
- expect(envelope.status[:code]).to eq(200)
827
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
828
- expect(envelope.status[:category]).to eq(:ack)
829
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
675
+ expect(envelope.result[:code]).to eq(200)
676
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
677
+ end
678
+ end
830
679
 
831
- expect(envelope.result[:code]).to eq(200)
832
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
680
+ it "__action___remove___channel___demo____channel_group___demo___http_sync__false___callback___block_" do
681
+ VCR.use_cassette("examples/channel_registration/30", record: :none) do
682
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: :demo, http_sync: false, &@callback)
683
+ envelope = envelope.value
684
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
685
+ expect(envelope.error?).to eq false
833
686
 
834
- end
835
- end
687
+ expect(envelope.status[:code]).to eq(200)
688
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
689
+ expect(envelope.status[:category]).to eq(:ack)
690
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
836
691
 
692
+ expect(envelope.result[:code]).to eq(200)
693
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
694
+ end
695
+ end
837
696
 
838
- it '__action___remove___channel___demo____channel_group___demo____http_sync__true___callback___lambda_' do
839
- VCR.use_cassette('examples/channel_registration/28', record: :none) do
840
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: 'demo', http_sync: true, callback: @callback)
841
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
842
- expect(envelope.error?).to eq false
697
+ it "__action___remove___channel___demo____channel_group___demo___http_sync__false___callback___lambda_" do
698
+ VCR.use_cassette("examples/channel_registration/31", record: :none) do
699
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: :demo, http_sync: false, callback: @callback)
700
+ envelope = envelope.value
701
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
702
+ expect(envelope.error?).to eq false
843
703
 
844
- expect(envelope.status[:code]).to eq(200)
845
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
846
- expect(envelope.status[:category]).to eq(:ack)
847
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
704
+ expect(envelope.status[:code]).to eq(200)
705
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
706
+ expect(envelope.status[:category]).to eq(:ack)
707
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
848
708
 
849
- expect(envelope.result[:code]).to eq(200)
850
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
709
+ expect(envelope.result[:code]).to eq(200)
710
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
711
+ end
712
+ end
851
713
 
852
- end
853
- end
714
+ it "__action___remove___channel___demo____channel_group___demo____http_sync__true___callback__nil_" do
715
+ VCR.use_cassette("examples/channel_registration/29", record: :none) do
716
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: "demo", http_sync: true)
717
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
718
+ expect(envelope.error?).to eq false
854
719
 
720
+ expect(envelope.status[:code]).to eq(200)
721
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
722
+ expect(envelope.status[:category]).to eq(:ack)
723
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
855
724
 
856
- it '__action___remove___channel___demo____channel_group___demo____http_sync__false___callback__nil_' do
857
- VCR.use_cassette('examples/channel_registration/26', record: :none) do
858
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: 'demo', http_sync: false)
859
- envelope = envelope.value
860
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
861
- expect(envelope.error?).to eq false
725
+ expect(envelope.result[:code]).to eq(200)
726
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
727
+ end
728
+ end
862
729
 
863
- expect(envelope.status[:code]).to eq(200)
864
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
865
- expect(envelope.status[:category]).to eq(:ack)
866
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
730
+ it "__action___remove___channel___demo____channel_group___demo____http_sync__true___callback___block_" do
731
+ VCR.use_cassette("examples/channel_registration/27", record: :none) do
732
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: "demo", http_sync: true, &@callback)
733
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
734
+ expect(envelope.error?).to eq false
867
735
 
868
- expect(envelope.result[:code]).to eq(200)
869
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
736
+ expect(envelope.status[:code]).to eq(200)
737
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
738
+ expect(envelope.status[:category]).to eq(:ack)
739
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
870
740
 
871
- end
872
- end
741
+ expect(envelope.result[:code]).to eq(200)
742
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
743
+ end
744
+ end
873
745
 
746
+ it "__action___remove___channel___demo____channel_group___demo____http_sync__true___callback___lambda_" do
747
+ VCR.use_cassette("examples/channel_registration/28", record: :none) do
748
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: "demo", http_sync: true, callback: @callback)
749
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
750
+ expect(envelope.error?).to eq false
874
751
 
875
- it '__action___remove___channel___demo____channel_group___demo____http_sync__false___callback___block_' do
876
- VCR.use_cassette('examples/channel_registration/24', record: :none) do
877
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: 'demo', http_sync: false, &@callback)
878
- envelope = envelope.value
879
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
880
- expect(envelope.error?).to eq false
752
+ expect(envelope.status[:code]).to eq(200)
753
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
754
+ expect(envelope.status[:category]).to eq(:ack)
755
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
881
756
 
882
- expect(envelope.status[:code]).to eq(200)
883
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
884
- expect(envelope.status[:category]).to eq(:ack)
885
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
757
+ expect(envelope.result[:code]).to eq(200)
758
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
759
+ end
760
+ end
886
761
 
887
- expect(envelope.result[:code]).to eq(200)
888
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
762
+ it "__action___remove___channel___demo____channel_group___demo____http_sync__false___callback__nil_" do
763
+ VCR.use_cassette("examples/channel_registration/26", record: :none) do
764
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: "demo", http_sync: false)
765
+ envelope = envelope.value
766
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
767
+ expect(envelope.error?).to eq false
889
768
 
890
- end
891
- end
769
+ expect(envelope.status[:code]).to eq(200)
770
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
771
+ expect(envelope.status[:category]).to eq(:ack)
772
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
892
773
 
774
+ expect(envelope.result[:code]).to eq(200)
775
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
776
+ end
777
+ end
893
778
 
894
- it '__action___remove___channel___demo____channel_group___demo____http_sync__false___callback___lambda_' do
895
- VCR.use_cassette('examples/channel_registration/25', record: :none) do
896
- envelope = @pubnub.channel_registration(action: :remove, channel: 'demo', channel_group: 'demo', http_sync: false, callback: @callback)
897
- envelope = envelope.value
898
- expect(envelope.is_a?(Pubnub::Envelope)).to eq true
899
- expect(envelope.error?).to eq false
779
+ it "__action___remove___channel___demo____channel_group___demo____http_sync__false___callback___block_" do
780
+ VCR.use_cassette("examples/channel_registration/24", record: :none) do
781
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: "demo", http_sync: false, &@callback)
782
+ envelope = envelope.value
783
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
784
+ expect(envelope.error?).to eq false
900
785
 
901
- expect(envelope.status[:code]).to eq(200)
902
- expect(envelope.status[:operation]).to eq(:channel_group_remove)
903
- expect(envelope.status[:category]).to eq(:ack)
904
- expect(envelope.status[:config]).to eq({:tls=>false, :uuid=>"ruby-test-uuid-client-one", :auth_key=>"ruby-test-auth-client-one", :origin=>"ps.pndsn.com"})
786
+ expect(envelope.status[:code]).to eq(200)
787
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
788
+ expect(envelope.status[:category]).to eq(:ack)
789
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
905
790
 
906
- expect(envelope.result[:code]).to eq(200)
907
- expect(envelope.result[:operation]).to eq(:channel_group_remove)
791
+ expect(envelope.result[:code]).to eq(200)
792
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
793
+ end
794
+ end
908
795
 
909
- end
910
- end
796
+ it "__action___remove___channel___demo____channel_group___demo____http_sync__false___callback___lambda_" do
797
+ VCR.use_cassette("examples/channel_registration/25", record: :none) do
798
+ envelope = @pubnub.channel_registration(action: :remove, channel: "demo", channel_group: "demo", http_sync: false, callback: @callback)
799
+ envelope = envelope.value
800
+ expect(envelope.is_a?(Pubnub::Envelope)).to eq true
801
+ expect(envelope.error?).to eq false
911
802
 
803
+ expect(envelope.status[:code]).to eq(200)
804
+ expect(envelope.status[:operation]).to eq(:channel_group_remove)
805
+ expect(envelope.status[:category]).to eq(:ack)
806
+ expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"})
912
807
 
808
+ expect(envelope.result[:code]).to eq(200)
809
+ expect(envelope.result[:operation]).to eq(:channel_group_remove)
810
+ end
811
+ end
913
812
  end
914
-