diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-03-18 00:19:57 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-03-18 19:58:02 +0530 |
commit | 4bd8ccd98472f7ea65fd6d4ff85dbafa348be331 (patch) | |
tree | d778186edc10ca2365d6421fd6f4c93724e37b43 /activesupport/test/transliterate_test.rb | |
parent | b365354e593da172c55770aed22c8211dbc18b08 (diff) | |
download | rails-4bd8ccd98472f7ea65fd6d4ff85dbafa348be331.tar.gz rails-4bd8ccd98472f7ea65fd6d4ff85dbafa348be331.tar.bz2 rails-4bd8ccd98472f7ea65fd6d4ff85dbafa348be331.zip |
fix repeat of test; remove unused variable by use of each_key
Diffstat (limited to 'activesupport/test/transliterate_test.rb')
-rw-r--r-- | activesupport/test/transliterate_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/transliterate_test.rb b/activesupport/test/transliterate_test.rb index b5d8142458..ce91c443e1 100644 --- a/activesupport/test/transliterate_test.rb +++ b/activesupport/test/transliterate_test.rb @@ -17,7 +17,7 @@ class TransliterateTest < ActiveSupport::TestCase # some reason or other are floating in the middle of all the letters. string = (0xC0..0x17E).to_a.reject {|c| [0xD7, 0xF7].include?(c)}.pack("U*") string.each_char do |char| - assert_match %r{^[a-zA-Z']*$}, ActiveSupport::Inflector.transliterate(string) + assert_match %r{^[a-zA-Z']*$}, ActiveSupport::Inflector.transliterate(char) end end |