chore: Remove message_signature_enabled from users (#3982)

This commit is contained in:
Pranav Raj S
2022-02-15 12:10:53 +05:30
committed by GitHub
parent 351a3dc372
commit 2591a04c0b
10 changed files with 67 additions and 81 deletions

View File

@@ -27,7 +27,6 @@ RSpec.describe 'Profile API', type: :request do
expect(json_response['access_token']).to eq(agent.access_token.token)
expect(json_response['custom_attributes']['test']).to eq('test')
expect(json_response['message_signature']).to be_nil
expect(json_response['message_signature_enabled']).to be_falsey
end
end
end
@@ -60,7 +59,7 @@ RSpec.describe 'Profile API', type: :request do
it 'updates the message_signature' do
put '/api/v1/profile',
params: { profile: { name: 'test', message_signature: 'Thanks\nMy Signature', message_signature_enabled: true } },
params: { profile: { name: 'test', message_signature: 'Thanks\nMy Signature' } },
headers: agent.create_new_auth_token,
as: :json
@@ -71,7 +70,6 @@ RSpec.describe 'Profile API', type: :request do
expect(json_response['name']).to eq(agent.name)
expect(agent.name).to eq('test')
expect(json_response['message_signature']).to eq('Thanks\nMy Signature')
expect(json_response['message_signature_enabled']).to be_truthy
end
it 'updates the password when current password is provided' do