fix attr_accessible

This commit is contained in:
albert
2011-12-14 11:19:58 -05:00
parent 1ad033f08b
commit 8fffa9747f
12 changed files with 265 additions and 352 deletions

View File

@@ -54,6 +54,7 @@ class UserTest < ActiveSupport::TestCase
end
should "limit comment votes" do
Danbooru.config.stubs(:member_comment_time_threshold).returns(1.week.from_now)
Danbooru.config.stubs(:member_comment_limit).returns(10)
assert(@user.can_comment_vote?)
10.times do