chore: Auto capitalize the name field while sending the canned response/variables (#6758)
* capitalize name before sending the message * Fix specs * Code cleanups
This commit is contained in:
@@ -12,6 +12,11 @@ describe ::UserDrop do
|
||||
end
|
||||
end
|
||||
|
||||
it('return the capitalized name') do
|
||||
user.update!(name: 'peter')
|
||||
expect(subject.name).to eq 'Peter'
|
||||
end
|
||||
|
||||
context 'when last name' do
|
||||
it 'returns the last name' do
|
||||
user.update!(name: 'John Doe')
|
||||
|
||||
Reference in New Issue
Block a user