- Audit log for user invitations: https://linear.app/chatwoot/issue/CW-1768/invited-a-user-to-the-account - Audit log for change role: https://linear.app/chatwoot/issue/CW-1767/name-or-email-changed-the-role-of-the-user-email-to-agent-or-admin - Audit log for status change: https://linear.app/chatwoot/issue/CW-1766/availability-status-as-events-for-audit-logs Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
16 lines
345 B
Ruby
16 lines
345 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe User do
|
|
let(:user) { create(:user) }
|
|
|
|
describe 'audit log' do
|
|
context 'when user is created' do
|
|
it 'has no associated audit log created' do
|
|
expect(Audited::Audit.where(auditable_type: 'User', action: 'create').count).to eq 0
|
|
end
|
|
end
|
|
end
|
|
end
|