Skip to content

Commit 6981471

Browse files
committed
fix url path
1 parent dd16dec commit 6981471

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/line/bot/rich_menu_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,19 @@
137137
end
138138

139139
it 'link a rich menus to multiple users at a atime' do
140-
uri_template = Addressable::Template.new Line::Bot::API::DEFAULT_ENDPOINT + '/bot/user/richmenu/bulk/link'
140+
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

143143
client.bulk_link_user_rich_menus(['1', '2'], '7654321')
144-
expect(WebMock).to have_requested(:post, Line::Bot::API::DEFAULT_ENDPOINT + '/bot/user/richmenu/bulk/link')
144+
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
148-
uri_template = Addressable::Template.new Line::Bot::API::DEFAULT_ENDPOINT + '/bot/user/richmenu/bulk/unlink'
148+
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

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

155155
it 'gets an image associated with a rich menu' do

0 commit comments

Comments
 (0)