|
251 | 251 | let(:response_code) { 200 } |
252 | 252 |
|
253 | 253 | it 'returns a list of followers successfully without optional parameters' do |
254 | | - response_body = { "user_ids" => ["U1234567890", "U0987654321"] }.to_json |
| 254 | + response_body = { "userIds" => ["U1234567890", "U0987654321"] }.to_json |
255 | 255 | stub_request(:get, "https://api.line.me/v2/bot/followers/ids") |
256 | 256 | .with( |
257 | 257 | headers: { |
|
267 | 267 | end |
268 | 268 |
|
269 | 269 | it 'query with only start' do |
270 | | - response_body = { "user_ids" => ["U1234567890", "U0987654321"], "next" => "nExT Token" }.to_json |
| 270 | + response_body = { "userIds" => ["U1234567890", "U0987654321"], "next" => "nExT Token" }.to_json |
271 | 271 | stub_request(:get, "https://api.line.me/v2/bot/followers/ids?start=from%20previous%20NEXT") |
272 | 272 | .with( |
273 | 273 | headers: { |
|
284 | 284 | end |
285 | 285 |
|
286 | 286 | it 'query with limit and start' do |
287 | | - response_body = { "user_ids" => ["U1234567890", "U0987654321"], "next" => "nExT Token" }.to_json |
| 287 | + response_body = { "userIds" => ["U1234567890", "U0987654321"], "next" => "nExT Token" }.to_json |
288 | 288 | stub_request(:get, "https://api.line.me/v2/bot/followers/ids?limit=10&start=from%20previous%20NEXT") |
289 | 289 | .with( |
290 | 290 | headers: { |
|
519 | 519 |
|
520 | 520 | describe 'GET /v2/bot/message/aggregation/list' do |
521 | 521 | let(:client) { Line::Bot::V2::MessagingApi::ApiClient.new(channel_access_token: 'test-channel-access-token') } |
522 | | - let(:response_body) { { "custom_aggregation_units" => ["unit1", "unit2"], "next" => "token" }.to_json } |
| 522 | + let(:response_body) { { "customAggregationUnits" => ["unit1", "unit2"], "next" => "token" }.to_json } |
523 | 523 | let(:response_code) { 200 } |
524 | 524 |
|
525 | 525 | it 'returns a list of aggregation units successfully without optional parameters' do |
|
0 commit comments