Files
danbooru/test/functional/counts_controller_test.rb
evazion 9b48c98c61 Fix #4614: Counts endpoint responds with invalid JSON.
Caused by the search timing out and returning nil for the count. Nil got
serialized as the empty string instead of as null.
2020-12-05 13:10:11 -06:00

23 lines
522 B
Ruby

require 'test_helper'
class CountsControllerTest < ActionDispatch::IntegrationTest
context "The counts commentary controller" do
context "posts action" do
should "render" do
get posts_counts_path
assert_response :success
end
should "render for json" do
get posts_counts_path(format: :json)
assert_response :success
end
should "render for xml" do
get posts_counts_path(format: :xml)
assert_response :success
end
end
end
end