Skip to content

Commit 4fa339a

Browse files
committed
Fix spec
1 parent 54d05d7 commit 4fa339a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/v3/billing_client_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362

363363
describe '#v2_plans_for' do
364364
describe '#organization' do
365-
subject { billing.plans_for_organization(organization.id) }
365+
subject { billing.v2_plans_for_organization(organization.id) }
366366

367367
it 'returns the list of v2 plans for an organization' do
368368
stub_request(:get, "#{billing_url}v2/plans_for/organization/#{organization.id}").with(basic_auth: ['_', auth_key], headers: { 'X-Travis-User-Id' => user_id })
@@ -376,7 +376,7 @@
376376
end
377377

378378
describe '#user' do
379-
subject { billing.plans_for_user }
379+
subject { billing.v2_plans_for_user }
380380

381381
it 'returns the list of v2 plans for an user' do
382382
stub_request(:get, "#{billing_url}v2/plans_for/user").with(basic_auth: ['_', auth_key], headers: { 'X-Travis-User-Id' => user_id })
@@ -394,7 +394,7 @@
394394
subject { billing.v2_subscription_user_usages(subscription_id)}
395395

396396
it 'returns the list of user license usages for the subscription' do
397-
stub_request(:get, "#{billing_url}v2/subscription/#{subscription_id}/user_usage").with(basic_auth: ['_', auth_key], headers: { 'X-Travis-User-Id' => user_id })
397+
stub_request(:get, "#{billing_url}v2/subscriptions/#{subscription_id}/user_usage").with(basic_auth: ['_', auth_key], headers: { 'X-Travis-User-Id' => user_id })
398398
.to_return(body: JSON.dump([[billing_addon_usage_response_body]]))
399399

400400
expect(subject.size).to eq 1

0 commit comments

Comments
 (0)