expect(json_response['message']).toeq('Failed to save group'\
' {:avatar=>["file format is not supported.'\
' Please try one of the following supported formats:'\
' png, jpg, jpeg, gif, bmp, tiff, ico"]}')
end
context'when invalid file is used'do
let(:file_path){'spec/fixtures/doc_sample.txt'}
let(:message){'Failed to save group {:avatar=>["file format is not supported. Please try one of the following supported formats: png, jpg, jpeg, gif, bmp, tiff, ico"]}'}
it'returns 400 if group avatar file size exceeds allowed limit'do