Skip to content

Commit 816403a

Browse files
committed
oops
1 parent 6981471 commit 816403a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/line/bot/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def unlink_user_rich_menu(user_id)
369369
# @param rich_menu_id [String] ID of the uploaded rich menu
370370
#
371371
# @return [Net::HTTPResponse]
372-
def bulk_link_user_rich_menus(user_ids, rich_menu_id)
372+
def bulk_link_rich_menus(user_ids, rich_menu_id)
373373
request = Request.new do |config|
374374
config.httpclient = httpclient
375375
config.endpoint = endpoint
@@ -389,7 +389,7 @@ def bulk_link_user_rich_menus(user_ids, rich_menu_id)
389389
# @param user_ids [Array] ID of the user
390390
#
391391
# @return [Net::HTTPResponse]
392-
def bulk_unlink_user_rich_menus(user_ids)
392+
def bulk_unlink_rich_menus(user_ids)
393393
request = Request.new do |config|
394394
config.httpclient = httpclient
395395
config.endpoint = endpoint

spec/line/bot/rich_menu_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@
140140
uri_template = Addressable::Template.new Line::Bot::API::DEFAULT_ENDPOINT + '/bot/richmenu/bulk/link'
141141
stub_request(:post, uri_template).to_return(body: '{}', status: 200)
142142

143-
client.bulk_link_user_rich_menus(['1', '2'], '7654321')
143+
client.bulk_link_rich_menus(['1', '2'], '7654321')
144144
expect(WebMock).to have_requested(:post, Line::Bot::API::DEFAULT_ENDPOINT + '/bot/richmenu/bulk/link')
145145
end
146146

147147
it 'unlink a rich menus from multiple users at a time' do
148148
uri_template = Addressable::Template.new Line::Bot::API::DEFAULT_ENDPOINT + '/bot/richmenu/bulk/unlink'
149149
stub_request(:post, uri_template).to_return(body: '{}', status: 200)
150150

151-
client.bulk_unlink_user_rich_menus(['1', '2'])
151+
client.bulk_unlink_rich_menus(['1', '2'])
152152
expect(WebMock).to have_requested(:post, Line::Bot::API::DEFAULT_ENDPOINT + '/bot/richmenu/bulk/unlink')
153153
end
154154

0 commit comments

Comments
 (0)