Skip to content

Commit 8b30a56

Browse files
committed
Fix spec
1 parent 4fa339a commit 8b30a56

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

spec/v3/billing_client_spec.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,7 @@
370370

371371
expect(subject.size).to eq 1
372372
expect(subject.first.id).to eq('plan-id')
373-
expect(subject.first.addon_configs).to exist
374-
expect(subject.first.available_standalone_addons).to exist
373+
expect(subject.first.addon_configs.first.id).to eq('oss_tier_credits')
375374
end
376375
end
377376

@@ -384,8 +383,7 @@
384383

385384
expect(subject.size).to eq 1
386385
expect(subject.first.id).to eq('plan-id')
387-
expect(subject.first.addon_configs).to exist
388-
expect(subject.first.available_standalone_addons).to exist
386+
expect(subject.first.addon_configs.first.id).to eq('oss_tier_credits')
389387
end
390388
end
391389
end
@@ -395,7 +393,7 @@
395393

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

400398
expect(subject.size).to eq 1
401399
expect(subject.addon_quantity).to eq 100

0 commit comments

Comments
 (0)