From 3463e456755b8efce929876db56ff0562021804e Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 14 Dec 2011 11:28:05 -0500 Subject: [PATCH] fix tests --- test/functional/comment_votes_controller_test.rb | 1 + test/functional/comments_controller_test.rb | 1 + test/functional/moderator/dashboards_controller_test.rb | 1 + 3 files changed, 3 insertions(+) diff --git a/test/functional/comment_votes_controller_test.rb b/test/functional/comment_votes_controller_test.rb index 94ec342af..d963d22c0 100644 --- a/test/functional/comment_votes_controller_test.rb +++ b/test/functional/comment_votes_controller_test.rb @@ -5,6 +5,7 @@ class CommentVotesControllerTest < ActionController::TestCase setup do CurrentUser.user = @user = Factory.create(:user) CurrentUser.ip_addr = "127.0.0.1" + Danbooru.config.stubs(:member_comment_time_threshold).returns(1.week.from_now) @comment = Factory.create(:comment) end diff --git a/test/functional/comments_controller_test.rb b/test/functional/comments_controller_test.rb index 33b1c67f0..658f98191 100644 --- a/test/functional/comments_controller_test.rb +++ b/test/functional/comments_controller_test.rb @@ -5,6 +5,7 @@ class CommentsControllerTest < ActionController::TestCase setup do CurrentUser.user = Factory.create(:user) CurrentUser.ip_addr = "127.0.0.1" + Danbooru.config.stubs(:member_comment_time_threshold).returns(1.week.from_now) @post = Factory.create(:post) @comment = Factory.create(:comment, :post => @post) @user = Factory.create(:moderator_user) diff --git a/test/functional/moderator/dashboards_controller_test.rb b/test/functional/moderator/dashboards_controller_test.rb index 199fcd526..bc553ed36 100644 --- a/test/functional/moderator/dashboards_controller_test.rb +++ b/test/functional/moderator/dashboards_controller_test.rb @@ -7,6 +7,7 @@ module Moderator @admin = Factory.create(:admin_user) CurrentUser.user = @admin CurrentUser.ip_addr = "127.0.0.1" + Danbooru.config.stubs(:member_comment_time_threshold).returns(1.week.from_now) end context "show action" do