Chatwoot/spec/controllers/swagger_controller_spec.rb

13 lines
327 B
Ruby
Raw Permalink Normal View History

2020-02-23 07:24:29 +00:00
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