fix tests for issue #366

This commit is contained in:
Didier Lafforgue 2012-04-17 03:02:31 +02:00
parent 3fca9fa2d3
commit 60df273e4b
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ module Locomotive
default :from => Locomotive.config.mailer_sender default :from => Locomotive.config.mailer_sender
def new_content_entry(entry, account) def new_content_entry(account, entry)
@account, @entry, @type = account, entry, entry.content_type @account, @entry, @type = account, entry, entry.content_type
subject = t('locomotive.notifications.new_content_entry.subject', :type => @type.name, :locale => account.locale) subject = t('locomotive.notifications.new_content_entry.subject', :type => @type.name, :locale => account.locale)

View File

@ -148,7 +148,7 @@ module Locomotive
self.site.accounts.each do |account| self.site.accounts.each do |account|
next unless self.content_type.public_submission_accounts.map(&:to_s).include?(account._id.to_s) next unless self.content_type.public_submission_accounts.map(&:to_s).include?(account._id.to_s)
Locomotive::Notifications.new_content_entry(self, account).deliver Locomotive::Notifications.new_content_entry(account, self).deliver
end end
end end