chore: fixes
This commit is contained in:
@@ -15,7 +15,7 @@ RSpec.describe 'Conversation Audit', type: :model do
|
||||
|
||||
expect do
|
||||
conversation.destroy!
|
||||
end.to change { Audited::Audit.count }.by(1)
|
||||
end.to change(Audited::Audit, :count).by(1)
|
||||
|
||||
audit = Audited::Audit.last
|
||||
expect(audit.auditable_type).to eq('Conversation')
|
||||
@@ -28,7 +28,7 @@ RSpec.describe 'Conversation Audit', type: :model do
|
||||
|
||||
expect do
|
||||
conversation.update!(priority: 'high')
|
||||
end.not_to(change { Audited::Audit.count })
|
||||
end.not_to(change(Audited::Audit, :count))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,7 +25,7 @@ RSpec.describe ConversationPolicy, type: :policy do
|
||||
end
|
||||
|
||||
permissions :index? do
|
||||
context 'for any authenticated user' do
|
||||
context 'when user is authenticated' do
|
||||
it 'allows index' do
|
||||
expect(subject).to permit(agent_context, conversation)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user