Skip to content

Commit d680579

Browse files
author
Yoshiyuki Kinjo
committed
fix typo
1 parent ec7eb27 commit d680579

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
@@ -178,7 +178,7 @@
178178
.with(body: File.open(RICH_MENU_IMAGE_FILE_PATH).read)
179179
end
180180

181-
it 'uploads and attaches am image to a rich menu from uri' do
181+
it 'uploads and attaches an image to a rich menu from uri' do
182182
uri_template = Addressable::Template.new Line::Bot::API::DEFAULT_BLOB_ENDPOINT + '/bot/richmenu/1234567/content'
183183

184184
stub_request(:post, uri_template).to_return(body: '{}', status: 200).with do |request|
@@ -188,7 +188,7 @@
188188
image_url = 'https://line.example.org/rich_menu.png'
189189
image_content = File.open(RICH_MENU_IMAGE_FILE_PATH).read
190190
image_content.force_encoding('ASCII-8BIT')
191-
stub_request(:get, image_url).to_return(body: image_content, status: 200, headers: { 'Content-type' => 'image/png' })
191+
stub_request(:get, image_url).to_return(body: image_content, status: 200, headers: { 'Content-Type' => 'image/png' })
192192

193193
client.create_rich_menu_image('1234567', URI.parse(image_url).open)
194194

@@ -206,13 +206,13 @@
206206
end.to raise_error(ArgumentError)
207207
end
208208

209-
it "uploads invalid content type uri" do
209+
it 'uploads invalid content type uri' do
210210
uri_template = Addressable::Template.new Line::Bot::API::DEFAULT_ENDPOINT + '/bot/richmenu/1234567/content'
211211
stub_request(:post, uri_template).to_return(body: '{}', status: 200)
212212

213213
text_url = 'https://line.example.org/rich_menu.txt'
214214
text_content = File.open(RICH_MENU_INVALID_FILE_EXTENSION_PATH).read
215-
stub_request(:get, text_url).to_return(body: text_content, status: 200, headers: { 'Content-type' => 'plain/text' })
215+
stub_request(:get, text_url).to_return(body: text_content, status: 200, headers: { 'Content-Type' => 'plain/text' })
216216

217217
expect do
218218
client.create_rich_menu_image('1234567', URI.parse(text_url).open)

0 commit comments

Comments
 (0)