From 8434b25e5681146e41d9da917089670c943fda11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Sun, 24 Jun 2012 13:03:22 +0200 Subject: [PATCH] do not bypass pluralization in test --- spec/helpers/notifications_helper_spec.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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