diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-18 08:48:53 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-18 08:48:53 -0700 |
commit | 4e7292c0262ae70d968e0732bb6fea627646feef (patch) | |
tree | 3d59f4213fa958e2636865d0d99ea7fb5eb3447c /activesupport/test | |
parent | 2ce4af485a698ca6db5d45448529ae38c23f60fe (diff) | |
parent | 4bd8ccd98472f7ea65fd6d4ff85dbafa348be331 (diff) | |
download | rails-4e7292c0262ae70d968e0732bb6fea627646feef.tar.gz rails-4e7292c0262ae70d968e0732bb6fea627646feef.tar.bz2 rails-4e7292c0262ae70d968e0732bb6fea627646feef.zip |
Merge pull request #9763 from vipulnsward/fix_transliterate_test
Fix repeat of test; remove unused variable by use of each_key
Diffstat (limited to 'activesupport/test')
-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 |