mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 02:57:57 +00:00 
			
		
		
		
	 b1af814eab
			
		
	
	b1af814eab
	
	
	
		
			
			* feat: add chatwoot instance status in superadmin * feat: add redis metrics to instance health page * chore: fix rubocop * chore: rescue redis no connection * chore: add rspec * chore: refactor * feat: add instance health to /api * chore: rescue postgres * chore: fix spec
		
			
				
	
	
		
			14 lines
		
	
	
		
			409 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			409 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| 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])
 | |
|       expect(response.body).to include('queue_services')
 | |
|       expect(response.body).to include('data_services')
 | |
|     end
 | |
|   end
 | |
| end
 |