tests: add misc controller tests.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
module Admin
|
||||
class DashboardsController < ApplicationController
|
||||
before_filter :admin_only
|
||||
|
||||
def show
|
||||
@dashboard = AdminDashboard.new
|
||||
end
|
||||
|
||||
@@ -12,6 +12,6 @@ class AdminDashboard
|
||||
end
|
||||
|
||||
def forum_topics
|
||||
ForumTopic.where(category_id: 1).order("id desc").limit(20)
|
||||
ForumTopic.search(category_id: 1).order("id desc").limit(20)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user