fix: spec. reload to get correct credit amount
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user