Skip to content

Commit 2673831

Browse files
committed
Fix spec
1 parent 3dba37e commit 2673831

File tree

7 files changed

+55
-55
lines changed

7 files changed

+55
-55
lines changed

spec/v3/services/installation/find_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@
6060
"@representation" => "minimal",
6161
"@type" => "allowance",
6262
"id" => 1,
63-
"pending_user_licenses" => false,
64-
"user_usage" => true,
6563
"concurrency_limit" => 1,
6664
"private_repos" => false,
6765
"public_repos" => true,
68-
"subscription_type" => 1
66+
"subscription_type" => 1,
67+
"user_usage" => true,
68+
"pending_user_licenses" => false
6969
},
7070
"allow_migration" => false,
7171
"recently_signed_up" => false,

spec/v3/services/organization/find_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"@type" => "allowance",
2828
"@representation" => "minimal",
2929
"id" => org.id,
30-
"pending_user_licenses" => false,
31-
"user_usage" => true,
3230
"subscription_type" => 1,
3331
"public_repos" => true,
3432
"private_repos" => false,
35-
"concurrency_limit" => 1
33+
"concurrency_limit" => 1,
34+
"user_usage" => true,
35+
"pending_user_licenses" => false
3636
}
3737
}}
3838
end
@@ -67,12 +67,12 @@
6767
"@type" => "allowance",
6868
"@representation" => "minimal",
6969
"id" => org.id,
70-
"pending_user_licenses" => false,
71-
"user_usage" => true,
7270
"subscription_type" => 1,
7371
"public_repos" => true,
7472
"private_repos" => false,
75-
"concurrency_limit" => 1
73+
"concurrency_limit" => 1,
74+
"user_usage" => true,
75+
"pending_user_licenses" => false
7676
}
7777
}}
7878
end

spec/v3/services/organizations/for_current_user_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@
6363
"@type" => "allowance",
6464
"@representation" => "minimal",
6565
"id" => org.id,
66-
"pending_user_licenses" => false,
67-
"user_usage" => true,
6866
"subscription_type" => 1,
6967
"public_repos" => true,
7068
"private_repos" => false,
71-
"concurrency_limit" => 1
69+
"concurrency_limit" => 1,
70+
"user_usage" => true,
71+
"pending_user_licenses" => false
7272
}
7373
}]
7474
}}

spec/v3/services/owner/find_spec.rb

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"@type" => "allowance",
2828
"@representation" => "minimal",
2929
"id" => org.id,
30-
"pending_user_licenses" => false,
31-
"user_usage" => true,
3230
"subscription_type" => 1,
3331
"public_repos" => true,
3432
"private_repos" => false,
35-
"concurrency_limit" => 1
33+
"concurrency_limit" => 1,
34+
"user_usage" => true,
35+
"pending_user_licenses" => false
3636
}
3737
}}
3838
end
@@ -58,12 +58,12 @@
5858
"@type" => "allowance",
5959
"@representation" => "minimal",
6060
"id" => org.id,
61-
"pending_user_licenses" => false,
62-
"user_usage" => true,
6361
"subscription_type" => 1,
6462
"public_repos" => true,
6563
"private_repos" => false,
66-
"concurrency_limit" => 1
64+
"concurrency_limit" => 1,
65+
"user_usage" => true,
66+
"pending_user_licenses" => false
6767
}
6868
}}
6969
end
@@ -94,12 +94,12 @@
9494
"@type" => "allowance",
9595
"@representation" => "minimal",
9696
"id" => org.id,
97-
"pending_user_licenses" => false,
98-
"user_usage" => true,
9997
"subscription_type" => 1,
10098
"public_repos" => true,
10199
"private_repos" => false,
102-
"concurrency_limit" => 1
100+
"concurrency_limit" => 1,
101+
"user_usage" => true,
102+
"pending_user_licenses" => false
103103
},
104104
"repositories" => [{
105105
"@type" => "repository",
@@ -174,12 +174,12 @@
174174
"@type" => "allowance",
175175
"@representation" => "minimal",
176176
"id" => org.id,
177-
"pending_user_licenses" => false,
178-
"user_usage" => true,
179177
"subscription_type" => 1,
180178
"public_repos" => true,
181179
"private_repos" => false,
182-
"concurrency_limit" => 1
180+
"concurrency_limit" => 1,
181+
"user_usage" => true,
182+
"pending_user_licenses" => false
183183
},
184184
"repositories" => [{
185185
"@type" => "repository",
@@ -249,12 +249,12 @@
249249
"@type" => "allowance",
250250
"@representation" => "minimal",
251251
"id" => org.id,
252-
"pending_user_licenses" => false,
253-
"user_usage" => true,
254252
"subscription_type" => 1,
255253
"public_repos" => true,
256254
"private_repos" => false,
257-
"concurrency_limit" => 1
255+
"concurrency_limit" => 1,
256+
"user_usage" => true,
257+
"pending_user_licenses" => false
258258
}
259259
}}
260260
end
@@ -284,12 +284,12 @@
284284
"@type" => "allowance",
285285
"@representation" => "minimal",
286286
"id" => org.id,
287-
"pending_user_licenses" => false,
288-
"user_usage" => true,
289287
"subscription_type" => 1,
290288
"public_repos" => true,
291289
"private_repos" => false,
292-
"concurrency_limit" => 1
290+
"concurrency_limit" => 1,
291+
"user_usage" => true,
292+
"pending_user_licenses" => false
293293
},
294294
"@warnings" => [{
295295
"@type" => "warning",
@@ -329,12 +329,12 @@
329329
"@type" => "allowance",
330330
"@representation" => "minimal",
331331
"id" => user.id,
332-
"pending_user_licenses" => false,
333-
"user_usage" => true,
334332
"subscription_type" => 1,
335333
"public_repos" => true,
336334
"private_repos" => false,
337-
"concurrency_limit" => 1
335+
"concurrency_limit" => 1,
336+
"user_usage" => true,
337+
"pending_user_licenses" => false
338338
},
339339
"recently_signed_up"=>false,
340340
"secure_user_hash" => nil,
@@ -365,12 +365,12 @@
365365
"@type" => "allowance",
366366
"@representation" => "minimal",
367367
"id" => user.id,
368-
"pending_user_licenses" => false,
369-
"user_usage" => true,
370368
"subscription_type" => 1,
371369
"public_repos" => true,
372370
"private_repos" => false,
373-
"concurrency_limit" => 1
371+
"concurrency_limit" => 1,
372+
"user_usage" => true,
373+
"pending_user_licenses" => false
374374
},
375375
"recently_signed_up"=>false,
376376
"secure_user_hash" => nil,
@@ -401,12 +401,12 @@
401401
"@type" => "allowance",
402402
"@representation" => "minimal",
403403
"id" => user.id,
404-
"pending_user_licenses" => false,
405-
"user_usage" => true,
406404
"subscription_type" => 1,
407405
"public_repos" => true,
408406
"private_repos" => false,
409-
"concurrency_limit" => 1
407+
"concurrency_limit" => 1,
408+
"user_usage" => true,
409+
"pending_user_licenses" => false
410410
},
411411
"recently_signed_up"=>false,
412412
"secure_user_hash" => nil,
@@ -441,12 +441,12 @@
441441
"@type" => "allowance",
442442
"@representation" => "minimal",
443443
"id" => user.id,
444-
"pending_user_licenses" => false,
445-
"user_usage" => true,
446444
"subscription_type" => 1,
447445
"public_repos" => true,
448446
"private_repos" => false,
449-
"concurrency_limit" => 1
447+
"concurrency_limit" => 1,
448+
"user_usage" => true,
449+
"pending_user_licenses" => false
450450
},
451451
"recently_signed_up"=>false,
452452
"secure_user_hash" => nil,

spec/v3/services/repositories/for_owner_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -561,11 +561,11 @@
561561
"@type" => "allowance",
562562
"concurrency_limit" => 1,
563563
"id" => 0,
564-
"pending_user_licenses" => false,
565-
"user_usage" => false,
566564
"private_repos" => false,
567565
"public_repos" => true,
568-
"subscription_type" => 1
566+
"subscription_type" => 1,
567+
"user_usage" => false,
568+
"pending_user_licenses" => false
569569
}}
570570
end
571571

@@ -575,7 +575,7 @@
575575
Travis.config.billing.url = billing_url
576576
Travis.config.billing.auth_key = billing_auth_key
577577
stub_billing_request(:get, "/usage/users/1/allowance", auth_key: billing_auth_key, user_id: 1)
578-
.to_return(body: JSON.dump({ 'public_repos': true, 'private_repos': true, 'concurrency_limit': 666 }))
578+
.to_return(body: JSON.dump({ 'public_repos': true, 'private_repos': true, 'user_uage': true, 'pending_user_licenses': false, 'concurrency_limit': 666 }))
579579
get("/v3/owner/svenfuchs/allowance", {}, headers)
580580
end
581581
example { expect(last_response).to be_ok }
@@ -584,11 +584,11 @@
584584
"@type" => "allowance",
585585
"concurrency_limit" => 666,
586586
"id" => 1,
587-
"pending_user_licenses" => false,
588-
"user_usage" => true,
589587
"private_repos" => true,
590588
"public_repos" => true,
591-
"subscription_type" => 2
589+
"subscription_type" => 2,
590+
"user_usage" => true,
591+
"pending_user_licenses" => false
592592
}}
593593
end
594594

spec/v3/services/user/current_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
"@type" => "allowance",
2929
"@representation" => "minimal",
3030
"id" => user.id,
31-
"pending_user_licenses" => false,
32-
"user_usage" => false,
3331
"subscription_type" => 1,
3432
"public_repos" => true,
3533
"private_repos" => false,
36-
"concurrency_limit" => 1
34+
"concurrency_limit" => 1,
35+
"user_usage" => false,
36+
"pending_user_licenses" => false
3737
},
3838
"recently_signed_up"=>false,
3939
"secure_user_hash" => nil

spec/v3/services/user/find_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
"@type" => "allowance",
4242
"@representation" => "minimal",
4343
"id" => user.id,
44-
"pending_user_licenses" => false,
45-
"user_usage" => true,
4644
"subscription_type" => 2,
4745
"public_repos" => true,
4846
"private_repos" => true,
49-
"concurrency_limit" => 666
47+
"concurrency_limit" => 666,
48+
"user_usage" => true,
49+
"pending_user_licenses" => false
5050
},
5151
"recently_signed_up"=>false,
5252
"secure_user_hash" => nil,

0 commit comments

Comments
 (0)