From cfe64272c3a681952953cbdd5514692bd41e990d Mon Sep 17 00:00:00 2001 From: aakashb95 Date: Fri, 9 Jan 2026 14:31:34 +0530 Subject: [PATCH] fix: spec. reload to get correct credit amount --- .../enterprise/billing/handle_stripe_event_service_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/enterprise/services/enterprise/billing/handle_stripe_event_service_spec.rb b/spec/enterprise/services/enterprise/billing/handle_stripe_event_service_spec.rb index 0f8ce1494..3ca337574 100644 --- a/spec/enterprise/services/enterprise/billing/handle_stripe_event_service_spec.rb +++ b/spec/enterprise/services/enterprise/billing/handle_stripe_event_service_spec.rb @@ -66,6 +66,7 @@ describe Enterprise::Billing::HandleStripeEventService do it 'resets captain usage on billing period renewal' do # Prime the account with some usage 5.times { account.increment_response_usage } + account.reload expect(account.custom_attributes['captain_responses_usage']).to eq(5) # Setup for any plan