From 637fc2c9ac066e7d4c5c0e44452810d7b2e15a75 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 20 Jan 2025 17:55:37 +0530 Subject: [PATCH] test: update spec for usage_limits --- spec/models/account_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index aa0556492..4b200fb9a 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -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