Skip to content

Commit

Permalink
Use conversations_list instead of deprecated channels_list
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabigeek committed Jun 29, 2020
1 parent 0d0514f commit 42d4c4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/slack/web/api/mixins/channels.id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def channels_id(options = {})
throw ArgumentError.new('Required arguments :channel missing') if name.nil?

id_for(:channel, name, '#', :channels, 'channel_not_found') do
channels_list
conversations_list
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/slack/web/api/mixins/channels_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
end

before do
allow(channels).to receive(:channels_list).and_return(
allow(channels).to receive(:conversations_list).and_return(
Slack::Messages::Message.new(
'channels' => [{
'id' => 'CDEADBEEF',
Expand Down

0 comments on commit 42d4c4d

Please sign in to comment.