Skip to content

Commit 9bc08a7

Browse files
committed
Avoid cross-module references
1 parent 1f777a9 commit 9bc08a7

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

lib/slack/web/api/mixins/conversations.id.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Conversations
1616
# The page size used for conversations_list calls required to find the channel's ID
1717
def conversations_id(options = {})
1818
name = options[:channel]
19-
limit = options.fetch(:id_limit, conversations_id_page_size)
19+
limit = options.fetch(:id_limit, Slack::Web.config.conversations_id_page_size)
2020

2121
raise ArgumentError, 'Required arguments :channel missing' if name.nil?
2222

lib/slack/web/api/mixins/users.id.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Users
1616
# The page size used for users_list calls required to find the user's ID
1717
def users_id(options = {})
1818
name = options[:user]
19-
limit = options.fetch(:id_limit, users_id_page_size)
19+
limit = options.fetch(:id_limit, Slack::Web.config.users_id_page_size)
2020

2121
raise ArgumentError, 'Required arguments :user missing' if name.nil?
2222

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
end
1414

1515
before do
16-
allow(conversations).to receive(:conversations_id_page_size) { Slack::Web.config.conversations_id_page_size }
1716
allow(conversations).to receive(:conversations_list).and_yield(
1817
Slack::Messages::Message.new(
1918
'channels' => [{

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
end
1414

1515
before do
16-
allow(users).to receive(:users_id_page_size) { Slack::Web.config.users_id_page_size }
1716
allow(users).to receive(:users_list).and_yield(
1817
Slack::Messages::Message.new(
1918
'members' => [{

0 commit comments

Comments
 (0)