From 16d904bed9ec5ce521cee6c8efd66fcf19a48e60 Mon Sep 17 00:00:00 2001 From: bartuz Date: Sat, 12 Sep 2015 21:01:02 +0100 Subject: [PATCH] Fix specs for array interpolation It covers full use case now. Thankfully to https://github.com/svenfuchs/i18n/pull/282#discussion_r37779978 --- lib/i18n/tests/interpolation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/i18n/tests/interpolation.rb b/lib/i18n/tests/interpolation.rb index 28afa282..ba978c3f 100644 --- a/lib/i18n/tests/interpolation.rb +++ b/lib/i18n/tests/interpolation.rb @@ -55,8 +55,8 @@ module Interpolation end test "interpolation: given an array interpolates each element" do - I18n.backend.store_translations(:en, :array_interpolate => ['Hi', '%{name}']) - assert_equal ['Hi', 'Bartuz'], interpolate(:array_interpolate, :name => 'Bartuz') + I18n.backend.store_translations(:en, :array_interpolate => ['Hi', 'Mr. %{name}', 'or sir %{name}']) + assert_equal ['Hi', 'Mr. Bartuz', 'or sir Bartuz'], interpolate(:array_interpolate, :name => 'Bartuz') end test "interpolation: given the translation is in utf-8 it still works" do