Skip to content

Commit 1d6e42d

Browse files
committed
fix for rubocop
1 parent 592b3b9 commit 1d6e42d

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

spec/line/bot/client_get_spec.rb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def generate_client
286286
response = client.get_number_of_message_deliveries("20190701")
287287

288288
json = JSON.parse(response.body, symbolize_names: true)
289-
expect(json).to eq({
289+
expect(json).to eq(
290290
status: "ready",
291291
broadcast: 5385,
292292
targeting: 522,
@@ -296,8 +296,8 @@ def generate_client
296296
apiBroadcast: 1123,
297297
apiPush: 1234,
298298
apiMulticast: 1567,
299-
apiReply: 1890,
300-
})
299+
apiReply: 1890
300+
)
301301
end
302302

303303
it 'get number of followers' do
@@ -308,12 +308,12 @@ def generate_client
308308
response = client.get_number_of_followers("20190701")
309309

310310
json = JSON.parse(response.body, symbolize_names: true)
311-
expect(json).to eq({
311+
expect(json).to eq(
312312
status: "ready",
313313
followers: 5385,
314314
targetedReaches: 522,
315-
blocks: 123,
316-
})
315+
blocks: 123
316+
)
317317
end
318318

319319
it 'get friend demographics' do
@@ -324,34 +324,34 @@ def generate_client
324324
response = client.get_friend_demographics
325325

326326
json = JSON.parse(response.body, symbolize_names: true)
327-
expect(json).to eq({
327+
expect(json).to eq(
328328
available: true,
329329
genders: [
330-
{ gender: "unknown", percentage: 37.6 },
331-
{ gender: "male", percentage: 31.8 },
332-
{ gender: "female", percentage: 30.6 }
330+
{ gender: "unknown", percentage: 37.6 },
331+
{ gender: "male", percentage: 31.8 },
332+
{ gender: "female", percentage: 30.6 }
333333
],
334334
ages: [
335-
{ age: "unknown", percentage: 37.6 },
336-
{ age: "from50", percentage: 17.3 },
335+
{ age: "unknown", percentage: 37.6 },
336+
{ age: "from50", percentage: 17.3 },
337337
],
338338
areas: [
339-
{ area: "unknown", percentage: 42.9 },
340-
{ area: "徳島", percentage: 2.9 },
339+
{ area: "unknown", percentage: 42.9 },
340+
{ area: "徳島", percentage: 2.9 }
341341
],
342342
appTypes: [
343-
{ appType: "ios", percentage: 62.4 },
344-
{ appType: "android", percentage: 27.7 },
345-
{ appType: "others", percentage: 9.9 }
343+
{ appType: "ios", percentage: 62.4 },
344+
{ appType: "android", percentage: 27.7 },
345+
{ appType: "others", percentage: 9.9 }
346346
],
347347
subscriptionPeriods: [
348-
{ subscriptionPeriod: "over365days", percentage: 96.4 },
349-
{ subscriptionPeriod: "within365days", percentage: 1.9 },
350-
{ subscriptionPeriod: "within180days", percentage: 1.2 },
351-
{ subscriptionPeriod: "within90days", percentage: 0.5 },
352-
{ subscriptionPeriod: "within30days", percentage: 0.1 },
353-
{ subscriptionPeriod: "within7days", percentage: 0 }
348+
{ subscriptionPeriod: "over365days", percentage: 96.4 },
349+
{ subscriptionPeriod: "within365days", percentage: 1.9 },
350+
{ subscriptionPeriod: "within180days", percentage: 1.2 },
351+
{ subscriptionPeriod: "within90days", percentage: 0.5 },
352+
{ subscriptionPeriod: "within30days", percentage: 0.1 },
353+
{ subscriptionPeriod: "within7days", percentage: 0 }
354354
]
355-
})
355+
)
356356
end
357357
end

0 commit comments

Comments
 (0)