Files
danbooru/test/functional/reports_controller_test.rb
2020-01-13 12:58:20 -06:00

21 lines
496 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 "upload_tags action" do
should "render" do
get reports_upload_tags_path(user_id: @users.first)
assert_response :success
end
end
end
end