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 | |
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')
-rw-r--r-- | activesupport/test/inflector_test.rb | 2 | ||||
-rw-r--r-- | activesupport/test/transliterate_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index 4806ce07f6..22cb61ffd6 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -324,7 +324,7 @@ class InflectorTest < ActiveSupport::TestCase end def test_underscore_as_reverse_of_dasherize - UnderscoresToDashes.each do |underscored, dasherized| + UnderscoresToDashes.each_key do |underscored| assert_equal(underscored, ActiveSupport::Inflector.underscore(ActiveSupport::Inflector.dasherize(underscored))) end end 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 |