fixing tests

This commit is contained in:
albert
2011-07-16 19:20:02 -04:00
parent 7d80057e20
commit 58c3d2af13
49 changed files with 896 additions and 488 deletions

View File

@@ -1,5 +1,5 @@
class IpBansController < ApplicationController
before_filter :admin_only
before_filter :janitor_only
def new
@ip_ban = IpBan.new

View File

@@ -0,0 +1,9 @@
module Moderator
class DashboardsController < ApplicationController
before_filter :janitor_only
def show
@dashboard = ModeratorDashboard.new(params[:min_date] || 2.days.ago.to_date, params[:max_level] || 20)
end
end
end

View File

@@ -37,7 +37,7 @@ class NotesController < ApplicationController
def destroy
@note = Note.find(params[:id])
@note.update_attribute(:is_active, false)
@note.update_column(:is_active, false)
respond_with(@note)
end