Skip to content

Commit fa9266d

Browse files
committed
Tests for default id_for page sizes
1 parent a6a86d1 commit fa9266d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

spec/slack/web/api/mixins/conversations_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
end
3333

3434
it 'translates a channel that starts with a #' do
35+
expect(conversations).to receive(:conversations_list).with(limit: 100)
3536
expect(conversations.conversations_id(channel: '#general')).to(
3637
eq('ok' => true, 'channel' => { 'id' => 'CDEADBEEF' })
3738
)

spec/slack/web/api/mixins/users_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
end
3232

3333
it 'translates a user that starts with a @' do
34+
expect(users).to receive(:users_list).with(limit: 100)
3435
expect(users.users_id(user: '@aws')).to eq('ok' => true, 'user' => { 'id' => 'UDEADBEEF' })
3536
end
3637

0 commit comments

Comments
 (0)