From cf5d6ab9a849d19ac683180cc7b603ca94b13ed7 Mon Sep 17 00:00:00 2001
From: Luca Guidi <guidi.luca@gmail.com>
Date: Tue, 8 Jul 2008 12:37:49 +0200
Subject: Added localize helper method

---
 actionpack/test/template/translation_helper_test.rb | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'actionpack/test')

diff --git a/actionpack/test/template/translation_helper_test.rb b/actionpack/test/template/translation_helper_test.rb
index e97bcdb731..2263d48a65 100644
--- a/actionpack/test/template/translation_helper_test.rb
+++ b/actionpack/test/template/translation_helper_test.rb
@@ -39,4 +39,10 @@ class TranslationHelperTest < Test::Unit::TestCase
     #   error_messages_for(:object => @object, :locale => 'en-US')
     # end
   end
+  
+  def test_delegates_localize_to_i18n
+    @time = Time.utc(2008, 7, 8, 12, 18, 38)
+    assert_equal "Tue, 08 Jul 2008 12:18:38 +0100", localize(@time)
+    assert_equal "08 Jul 12:18", localize(@time, :format => :short)
+  end
 end
\ No newline at end of file
-- 
cgit v1.2.3