diff --git a/test/functional/reports_controller_test.rb b/test/functional/reports_controller_test.rb index faf98b6ef..0cadd3c05 100644 --- a/test/functional/reports_controller_test.rb +++ b/test/functional/reports_controller_test.rb @@ -5,10 +5,8 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest setup do @mod = create(:mod_user) @users = FactoryBot.create_list(:contributor_user, 2) - @posts = @users.map do |u| - as(u) do - create(:post) - end + @posts = @users.map do |u| + create(:post, uploader: u) end end @@ -25,5 +23,12 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest 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