mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
chore: Add status param in conversation APIs (#2394)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -58,12 +58,12 @@ RSpec.describe 'Profile API', type: :request do
|
||||
|
||||
it 'updates the password when current password is provided' do
|
||||
put '/api/v1/profile',
|
||||
params: { profile: { current_password: 'Test123!', password: 'test123', password_confirmation: 'test123' } },
|
||||
params: { profile: { current_password: 'Test123!', password: 'Test1234!', password_confirmation: 'Test1234!' } },
|
||||
headers: agent.create_new_auth_token,
|
||||
as: :json
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(agent.reload.valid_password?('test123')).to eq true
|
||||
expect(agent.reload.valid_password?('Test1234!')).to eq true
|
||||
end
|
||||
|
||||
it 'throws error when current password provided is invalid' do
|
||||
|
||||
Reference in New Issue
Block a user