diff --git a/spec/helpers/notifications_helper_spec.rb b/spec/helpers/notifications_helper_spec.rb index 7ce660bc1..15804b00b 100644 --- a/spec/helpers/notifications_helper_spec.rb +++ b/spec/helpers/notifications_helper_spec.rb @@ -74,9 +74,10 @@ describe NotificationsHelper do it 'includes the boilerplate translation' do output = object_link(@notification, notification_people_link(@notification)) - output.should include t("#{@notification.popup_translation_key}.two", - :actors => notification_people_link(@notification), - :post_link => "#{t('notifications.post')}") + output.should include I18n.t("#{@notification.popup_translation_key}", + :actors => notification_people_link(@notification), + :count => @notification.actors.count, + :post_link => "#{t('notifications.post')}") end context 'when post is deleted' do