Files
danbooru/test/functional/reports_controller_test.rb
evazion 1341dbb262 Remove post changes report.
This was a mod-only report that used Google BigQuery to search post
versions by tag. 2b4ee0ee8 allows all users to search post versions by
tag, so this report is no longer necessary.
2019-09-27 21:12:53 -05:00

28 lines
649 B
Ruby

require 'test_helper'
class ReportsControllerTest < ActionDispatch::IntegrationTest
context "The reports controller" do
setup do
@mod = create(:mod_user)
@users = FactoryBot.create_list(:contributor_user, 2)
@posts = @users.map do |u|
create(:post, uploader: u)
end
end
context "uploads action" do
should "render" do
get_auth reports_uploads_path, @mod
assert_response :success
end
end
context "upload_tags action" do
should "render" do
get reports_upload_tags_path(user_id: @users.first)
assert_response :success
end
end
end
end