File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -1303,4 +1303,32 @@ def loop_times(times)
13031303 expect ( response [ 'active_live_locations' ] . length ) . to be >= 1
13041304 end
13051305 end
1306+
1307+ describe 'backwards compatibility' do
1308+ it 'message_re_engagement_hooks_interval is included in the app settings' do
1309+ response = @client . get_app_settings
1310+ expect ( response [ 'app' ] [ 'message_re_engagement_hooks_interval' ] ) . not_to be_nil
1311+ expect ( response [ 'app' ] [ 'reminders_interval' ] ) . not_to be_nil
1312+ end
1313+
1314+ it 'message_re_engagement_hooks_interval can be changed server-side for the app' do
1315+ @client . update_app_settings ( message_re_engagement_hooks_interval : 68 )
1316+ response = @client . get_app_settings
1317+ expect ( response [ 'app' ] [ 'message_re_engagement_hooks_interval' ] ) . to eq ( 68 )
1318+ expect ( response [ 'app' ] [ 'reminders_interval' ] ) . to eq ( 68 )
1319+ end
1320+
1321+ it 'can be enabled for channel type' do
1322+ response = @client . update_channel_type ( 'messaging' , message_re_engagement_hooks : true )
1323+ p response
1324+ expect ( response [ 'message_re_engagement_hooks' ] ) . to eq ( true )
1325+ expect ( response [ 'reminders' ] ) . to eq ( true )
1326+ end
1327+
1328+ it 'can be disabled for a channel type' do
1329+ response = @client . update_channel_type ( 'messaging' , message_re_engagement_hooks : false )
1330+ expect ( response [ 'message_re_engagement_hooks' ] ) . to eq ( false )
1331+ expect ( response [ 'reminders' ] ) . to eq ( false )
1332+ end
1333+ end
13061334end
You can’t perform that action at this time.
0 commit comments