fix tests

This commit is contained in:
r888888888
2014-06-18 16:51:55 -07:00
parent f02f72fac1
commit f65691b5e6
9 changed files with 12 additions and 12 deletions

View File

@@ -188,12 +188,12 @@ class Dmail < ActiveRecord::Base
update_column(:is_read, true)
unless Dmail.where(:is_read => false, :owner_id => CurrentUser.user.id).exists?
CurrentUser.user.update_column(:has_mail, false)
CurrentUser.user.update_attribute(:has_mail, false)
end
end
def update_recipient
to.update_column(:has_mail, true)
to.update_attribute(:has_mail, true)
end
def visible_to?(user)