tests: add missing controller tests.
This commit is contained in:
20
test/functional/modqueue_controller_test.rb
Normal file
20
test/functional/modqueue_controller_test.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ModqueueControllerTest < ActionDispatch::IntegrationTest
|
||||
context "The modqueue controller" do
|
||||
setup do
|
||||
@admin = create(:admin_user)
|
||||
@user = create(:user)
|
||||
as_user do
|
||||
@post = create(:post, :is_pending => true)
|
||||
end
|
||||
end
|
||||
|
||||
context "index action" do
|
||||
should "render" do
|
||||
get_auth modqueue_index_path, @admin
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user