Chatwoot/spec/controllers/swagger_controller_spec.rb
2020-02-23 12:54:29 +05:30

12 lines
327 B
Ruby

require 'rails_helper'
describe '/swagger', type: :request do
describe 'GET /swagger' do
it 'renders swagger index.html' do
get '/swagger'
expect(response).to have_http_status(:success)
expect(response.body).to include('redoc')
expect(response.body).to include('/swagger.json')
end
end
end