spec/lib/events/subscribe_spec.rb in pubnub-4.0.9 vs spec/lib/events/subscribe_spec.rb in pubnub-4.0.12
- old
+ new
@@ -25,11 +25,10 @@
it 'works' do
VCR.use_cassette('lib/events/subscribe-async', record: :once) do
@pubnub = Pubnub::Client.new(
subscribe_key: 'sub-c-b7fb805a-1777-11e6-be83-0619f8945a4f',
publish_key: 'pub-c-b42cec2f-f468-4784-8833-dd2b074538c4',
- secret_key: 'sec-c-OWIyYmVlYWYtYWMxMS00OTcxLTlhZDAtZDBlYTM4ODE1MWUy',
auth_key: 'ruby-test-auth',
uuid: 'ruby-test-uuid'
)
@pubnub.add_listener(callback: @callbacks)
@@ -84,11 +83,10 @@
it 'fires status callback on error' do
VCR.use_cassette('lib/events/subscribe-async-error', record: :once) do
@pubnub = Pubnub::Client.new(
subscribe_key: 'sub-c-b7fb805a-1777-11e6-be83-0619f8945a4f',
publish_key: 'pub-c-b42cec2f-f468-4784-8833-dd2b074538c4',
- secret_key: 'sec-c-OWIyYmVlYWYtYWMxMS00OTcxLTlhZDAtZDBlYTM4ODE1MWUy',
auth_key: 'ruby-test-auth',
uuid: 'ruby-test-uuid'
)
@pubnub.add_listener(callback: @callbacks)
@@ -127,11 +125,10 @@
it 'works' do
VCR.use_cassette('lib/events/subscribe-sync', record: :once) do
@pubnub = Pubnub::Client.new(
subscribe_key: 'sub-c-b7fb805a-1777-11e6-be83-0619f8945a4f',
publish_key: 'pub-c-b42cec2f-f468-4784-8833-dd2b074538c4',
- secret_key: 'sec-c-OWIyYmVlYWYtYWMxMS00OTcxLTlhZDAtZDBlYTM4ODE1MWUy',
auth_key: 'ruby-test-auth',
uuid: 'ruby-test-uuid'
)
@pubnub.subscribe(channel: :demo, http_sync: true)
@@ -148,11 +145,10 @@
it 'fires status callback on error' do
VCR.use_cassette('lib/events/subscribe-sync-error', record: :once) do
@pubnub = Pubnub::Client.new(
subscribe_key: 'sub-c-b7fb805a-1777-11e6-be83-0619f8945a4f',
publish_key: 'pub-c-b42cec2f-f468-4784-8833-dd2b074538c4',
- secret_key: 'sec-c-OWIyYmVlYWYtYWMxMS00OTcxLTlhZDAtZDBlYTM4ODE1MWUy',
auth_key: 'ruby-test-auth',
uuid: 'ruby-test-uuid'
)
@pubnub.subscribe(channel: :demo, http_sync: true)
@@ -170,11 +166,10 @@
it 'pass channels to channel' do
VCR.use_cassette('lib/events/subscribe-sync', record: :once) do
@pubnub = Pubnub::Client.new(
subscribe_key: 'sub-c-b7fb805a-1777-11e6-be83-0619f8945a4f',
publish_key: 'pub-c-b42cec2f-f468-4784-8833-dd2b074538c4',
- secret_key: 'sec-c-OWIyYmVlYWYtYWMxMS00OTcxLTlhZDAtZDBlYTM4ODE1MWUy',
auth_key: 'ruby-test-auth',
uuid: 'ruby-test-uuid'
)
@pubnub.subscribe(channels: :demo, http_sync: true)
@@ -192,11 +187,10 @@
VCR.use_cassette('lib/events/subscribe-channel-groups', record: :once) do
@pubnub = Pubnub::Client.new(
subscribe_key: 'sub-c-b7fb805a-1777-11e6-be83-0619f8945a4f',
publish_key: 'pub-c-b42cec2f-f468-4784-8833-dd2b074538c4',
- secret_key: 'sec-c-OWIyYmVlYWYtYWMxMS00OTcxLTlhZDAtZDBlYTM4ODE1MWUy',
auth_key: 'ruby-test-auth',
uuid: 'ruby-test-uuid'
)
@pubnub.subscribe(channel_groups: :demo, http_sync: true)
@@ -213,10 +207,9 @@
it 'with with_presence' do
VCR.use_cassette('lib/events/subscribe-with-presence', record: :once) do
@pubnub = Pubnub::Client.new(
subscribe_key: 'sub-c-b7fb805a-1777-11e6-be83-0619f8945a4f',
publish_key: 'pub-c-b42cec2f-f468-4784-8833-dd2b074538c4',
- secret_key: 'sec-c-OWIyYmVlYWYtYWMxMS00OTcxLTlhZDAtZDBlYTM4ODE1MWUy',
auth_key: 'ruby-test-auth',
uuid: 'ruby-test-uuid'
)
@pubnub.subscribe(channels: [:demo, :demo1, 'demo.*'], with_presence: true, http_sync: true)
\ No newline at end of file