stubbed in blank controllers/helpers/functional tests

This commit is contained in:
albert
2010-03-10 18:21:43 -05:00
parent 836b59b1cd
commit ac98d7db37
137 changed files with 1349 additions and 58 deletions

View File

@@ -117,6 +117,10 @@ class User < ActiveRecord::Base
self.is_privileged = true
end
end
def is_anonymous?
false
end
end
module EmailVerificationMethods
@@ -137,12 +141,19 @@ class User < ActiveRecord::Base
end
end
module BlacklistMethods
def blacklisted_tag_array
Tag.scan_query(blacklisted_tags)
end
end
include NameMethods
include PasswordMethods
extend AuthenticationMethods
include FavoriteMethods
include LevelMethods
include EmailVerificationMethods
include BlacklistMethods
def can_update?(object, foreign_key = :user_id)
is_moderator? || is_admin? || object.__send__(foreign_key) == id