fix tests

This commit is contained in:
albert
2011-12-14 11:28:05 -05:00
parent 8fffa9747f
commit 3463e45675
3 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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