]> cat aescling's git repositories - mastodon.git/commitdiff
Add test for health_check endpoint
authorThibaut Girka <thib@sitedethib.com>
Mon, 10 Feb 2020 18:13:12 +0000 (19:13 +0100)
committerThibG <thib@sitedethib.com>
Mon, 10 Feb 2020 19:04:41 +0000 (20:04 +0100)
spec/controllers/health_check_controller_spec.rb [new file with mode: 0644]

diff --git a/spec/controllers/health_check_controller_spec.rb b/spec/controllers/health_check_controller_spec.rb
new file mode 100644 (file)
index 0000000..c00600c
--- /dev/null
@@ -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