diff options
author | Philip Arndt <parndt@gmail.com> | 2012-05-22 18:56:23 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-05-23 11:04:15 +1200 |
commit | 40c0b3a25d901247c51f92c5f295b229b4c61965 (patch) | |
tree | 55150234e8188050e39580029251233ce1d3d290 /actionpack/lib/action_view/helpers | |
parent | d22859ed9712cfa27b83225d8363d0f92261335a (diff) | |
download | rails-40c0b3a25d901247c51f92c5f295b229b4c61965.tar.gz rails-40c0b3a25d901247c51f92c5f295b229b4c61965.tar.bz2 rails-40c0b3a25d901247c51f92c5f295b229b4c61965.zip |
Fixed typo new_defautls -> new_defaults.
* Added tests for 'else' case in ActionView::Helpers::TranslationHelper#wrap_translate_defaults
* Also updated the testing syntax of translation.html_safe? asserts to provide better output upon failure.
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/translation_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/translation_helper.rb b/actionpack/lib/action_view/helpers/translation_helper.rb index 8171bea8ed..552c9ba660 100644 --- a/actionpack/lib/action_view/helpers/translation_helper.rb +++ b/actionpack/lib/action_view/helpers/translation_helper.rb @@ -64,7 +64,7 @@ module ActionView # Delegates to <tt>I18n.localize</tt> with no additional functionality. # - # See http://rubydoc.info/github/svenfuchs/i18n/master/I18n/Backend/Base:localize + # See http://rubydoc.info/github/svenfuchs/i18n/master/I18n/Backend/Base:localize # for more information. def localize(*args) I18n.localize(*args) @@ -96,7 +96,7 @@ module ActionView new_defaults << lambda { |_, options| translate key, options.merge(:default => defaults) } break else - new_defautls << key + new_defaults << key end end |