mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-27 02:54:19 +00:00
Add test for health_check endpoint
This commit is contained in:
parent
2edf317efc
commit
0cbd6d696b
13
spec/controllers/health_check_controller_spec.rb
Normal file
13
spec/controllers/health_check_controller_spec.rb
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
describe HealthCheck::HealthCheckController do
|
||||||
|
render_views
|
||||||
|
|
||||||
|
describe 'GET #show' do
|
||||||
|
subject(:response) { get :index, params: { format: :json } }
|
||||||
|
|
||||||
|
it 'returns the right response' do
|
||||||
|
expect(response).to have_http_status 200
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue