fixed notification helper spec

This commit is contained in:
MrZYX 2011-05-24 16:25:48 +02:00
parent 20cc3f0c7d
commit f4213b63a6

View file

@ -73,7 +73,8 @@ describe NotificationsHelper do
it 'includes the boilerplate translation' do
output = object_link(@notification)
output.should include t("#{@notification.popup_translation_key}")
output.should include t("#{@notification.popup_translation_key}",
:post_link => "<a href=\"#{status_message_path(@post)}\" class=\"hard_object_link\" data-ref=\"#{@post.id}\">#{t('notifications.post')}</a>")
end
context 'when post is deleted' do