Update spec and iron out spec order issue

This commit is contained in:
Priit Tark 2015-04-21 11:33:51 +03:00
parent b51310062d
commit 16b321c52f
6 changed files with 53 additions and 21 deletions

View file

@ -53,7 +53,7 @@ class DomainTransfer < ActiveRecord::Base
def notify_losing_registrar
transfer_from.messages.create!(
body: I18n.t('domain_transfer_was_approved', contacts: domain.contacts.pluck(:code)),
body: I18n.t('domain_transfer_was_approved', contacts: domain.contacts.pluck(:code).sort),
attached_obj_id: id,
attached_obj_type: self.class.to_s
)