File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ def delete
9595 @client . delete ( url )
9696 end
9797
98- def truncate
99- @client . post ( "#{ url } /truncate" )
98+ def truncate ( ** options )
99+ @client . post ( "#{ url } /truncate" , data : options )
100100 end
101101
102102 def add_members ( user_ids )
Original file line number Diff line number Diff line change 8282 expect ( response ) . to include 'channel'
8383 end
8484
85+ it 'can truncate with message' do
86+ text = SecureRandom . uuid . to_s
87+ response = @channel . truncate ( message : { text : text , user_id : @random_user [ :id ] } )
88+ expect ( response ) . to include 'message'
89+ expect ( response [ 'message' ] [ 'text' ] ) . to eq ( text )
90+ end
91+
8592 it 'can add members' do
8693 response = @channel . remove_members ( [ @random_user [ :id ] ] )
8794 expect ( response [ 'members' ] . length ) . to eq 0
You can’t perform that action at this time.
0 commit comments