test: update spec for usage_limits

This commit is contained in:
Shivam Mishra
2025-01-20 17:55:41 +05:30
parent cd72aa7bbf
commit 637fc2c9ac
+2 -1
View File
@@ -43,7 +43,8 @@ RSpec.describe Account do
let(:account) { create(:account) }
it 'returns ChatwootApp.max limits' do
expect(account.usage_limits).to eq({ agents: ChatwootApp.max_limit, inboxes: ChatwootApp.max_limit })
expect(account.usage_limits[:agents]).to eq(ChatwootApp.max_limit)
expect(account.usage_limits[:inboxes]).to eq(ChatwootApp.max_limit)
end
end