aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/inflector_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-04-10 12:42:52 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-04-10 12:44:39 -0300
commitd716fe05dfc174af4d840258b52e690ff754c8c3 (patch)
treee94522e55df9d9abcebe5799b059bd8b6d374397 /activesupport/test/inflector_test.rb
parent40410681255a430c4b45cb97f00ea4b1eaa1b862 (diff)
downloadrails-d716fe05dfc174af4d840258b52e690ff754c8c3.tar.gz
rails-d716fe05dfc174af4d840258b52e690ff754c8c3.tar.bz2
rails-d716fe05dfc174af4d840258b52e690ff754c8c3.zip
Revert "Merge pull request #10158 from steveklabnik/issue_10125"
This reverts commit fa3ef8e82ab2f96cf15ef9bc885b2468fad77621, reversing changes made to e0af93dd3a5eeee2e2a67b05f34afb66cc80c00b. Reason: Routes, Active Record and the rendering stack should not depend on the default locale
Diffstat (limited to 'activesupport/test/inflector_test.rb')
-rw-r--r--activesupport/test/inflector_test.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb
index ca3dbd9d64..22cb61ffd6 100644
--- a/activesupport/test/inflector_test.rb
+++ b/activesupport/test/inflector_test.rb
@@ -380,23 +380,6 @@ class InflectorTest < ActiveSupport::TestCase
assert !ActiveSupport::Inflector.inflections.plurals.empty?
assert !ActiveSupport::Inflector.inflections.singulars.empty?
end
-
- def test_inflector_with_default_locale
- old_locale = I18n.locale
-
- begin
- I18n.locale = :de
-
- ActiveSupport::Inflector.inflections(:de) do |inflect|
- inflect.irregular 'region', 'regionen'
- end
-
- assert_equal('regionen', 'region'.pluralize)
- assert_equal('region', 'regionen'.singularize)
- ensure
- I18n.locale = old_locale
- end
- end
def test_clear_all
with_dup do