Skip to content

Commit 0d9e1a3

Browse files
committed
Fix spec
1 parent 8b30a56 commit 0d9e1a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/v3/billing_client_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +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.first.id).to eq('oss_tier_credits')
373+
expect(subject.first.addon_configs.first['id']).to eq('oss_tier_credits')
374374
end
375375
end
376376

@@ -383,7 +383,7 @@
383383

384384
expect(subject.size).to eq 1
385385
expect(subject.first.id).to eq('plan-id')
386-
expect(subject.first.addon_configs.first.id).to eq('oss_tier_credits')
386+
expect(subject.first.addon_configs.first['id']).to eq('oss_tier_credits')
387387
end
388388
end
389389
end
@@ -396,8 +396,8 @@
396396
.to_return(body: JSON.dump([billing_addon_usage_response_body]))
397397

398398
expect(subject.size).to eq 1
399-
expect(subject.addon_quantity).to eq 100
400-
expect(subject.addon_usage).to eq 0
399+
expect(subject.first.addon_quantity).to eq 100
400+
expect(subject.first.addon_usage).to eq 0
401401
end
402402
end
403403

0 commit comments

Comments
 (0)