Files
danbooru/test/functional/status_controller_test.rb
evazion 7a87225ac8 Add basic server status page at /status.
Lists versions of various dependencies plus some Postgres and Redis
metrics.
2020-12-17 03:13:54 -06:00

21 lines
469 B
Ruby

require 'test_helper'
class StatusControllerTest < ActionDispatch::IntegrationTest
context "The status controller" do
should "work for a html response" do
get status_path
assert_response :success
end
should "work for a json response" do
get status_path(format: :json)
assert_response :success
end
should "work for an xml response" do
get status_path(format: :json)
assert_response :success
end
end
end