Files
danbooru/test/functional/counts_controller_test.rb
2020-05-07 03:29:38 -05:00

19 lines
489 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 an error during a timeout" do
PostQueryBuilder.any_instance.stubs(:fast_count).raises(Post::TimeoutError.new)
get posts_counts_path
assert_response :error
end
end
end
end