Chore: Housekeeping tasks (#721)

- End point to return api version
- Move agent bot listener to sync dispatcher
- gem update
This commit is contained in:
Sojan Jose
2020-04-16 15:05:01 +05:30
committed by GitHub
parent 55892e37f9
commit 743bddc065
8 changed files with 59 additions and 18 deletions

View File

@@ -0,0 +1,11 @@
require 'rails_helper'
RSpec.describe 'API Base', type: :request do
describe 'request to api base url' do
it 'returns api version' do
get '/api/'
expect(response).to have_http_status(:success)
expect(response.body).to include(Chatwoot.config[:version])
end
end
end