Skip to content

Commit 19863b5

Browse files
committed
Fix layout mistake and adjust specs
1 parent b38aa6b commit 19863b5

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

lib/travis/api/v3/queries/v2_subscriptions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def create(user_id)
1818
:organization_id => params['organization_id'],
1919
:billing_info => billing_info_params,
2020
:credit_card_info => credit_card_info_params
21-
)
21+
)
2222
end
2323
end
2424
end

spec/v3/services/v2_subscriptions/all_spec.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,15 @@
105105
'@representation' => 'minimal',
106106
'id' => organization.id,
107107
'vcs_type' => organization.vcs_type,
108-
'login' => 'travis'
108+
'login' => 'travis',
109+
'allowance' => {
110+
"@type" => "allowance",
111+
"@representation" => "minimal",
112+
"subscription_type" => 1,
113+
"public_repos" => true,
114+
"private_repos" => false,
115+
"concurrency_limit" => 1
116+
}
109117
},
110118
'billing_info' => {
111119
'@type' => 'v2_billing_info',

spec/v3/services/v2_subscriptions/create_spec.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,15 @@
186186
'@href' => "/v3/org/#{organization.id}",
187187
'id' => organization.id,
188188
'vcs_type' => organization.vcs_type,
189-
'login' => 'travis'
189+
'login' => 'travis',
190+
'allowance' => {
191+
"@type" => "allowance",
192+
"@representation" => "minimal",
193+
"subscription_type" => 1,
194+
"public_repos" => true,
195+
"private_repos" => false,
196+
"concurrency_limit" => 1
197+
}
190198
},
191199
'payment_intent' => nil,
192200
})

0 commit comments

Comments
 (0)