fixed unit tests

This commit is contained in:
albert
2010-03-18 18:35:16 -04:00
parent 06a959a9fd
commit be10906044
4 changed files with 6 additions and 6 deletions

View File

@@ -147,11 +147,11 @@ class BanTest < ActiveSupport::TestCase
user = Factory.create(:user)
ban = Factory.create(:ban, :user => user, :banner => admin, :duration => -1)
assert(!Ban.is_user_banned?(user))
assert(!Ban.is_banned?(user))
user = Factory.create(:user)
ban = Factory.create(:ban, :user => user, :banner => admin, :duration => 1)
assert(Ban.is_user_banned?(user))
assert(Ban.is_banned?(user))
end
end
end