Permalink
Browse files

Fix assertion order and ✂️ extra spaces

  • Loading branch information...
1 parent f0f7c4f commit c4c5801bd9ded4c23c1e35f6a4d991f1d16db113 @carlosantoniodasilva carlosantoniodasilva committed May 13, 2014
@@ -7,7 +7,7 @@ module Helpers
module TranslationHelper
# Delegates to <tt>I18n#translate</tt> but also performs three additional functions.
#
- # First, it will ensure that any thrown +MissingTranslation+ messages will be turned
+ # First, it will ensure that any thrown +MissingTranslation+ messages will be turned
# into inline spans that:
#
# * have a "translation-missing" class set,
@@ -35,7 +35,6 @@ module TranslationHelper
# you know what kind of output to expect when you call translate in a template.
def translate(key, options = {})
options = options.dup
-
options[:default] = wrap_translate_defaults(options[:default]) if options[:default]
# If the user has specified rescue_format then pass it all through, otherwise use
@@ -152,9 +152,9 @@ def test_translate_with_array_of_string_defaults
assert_equal 'A Generic String', translation
end
- def test_translate_doesnt_change_options
+ def test_translate_does_not_change_options
options = {}
translate(:'translations.missing', options)
- assert_equal options, {}
+ assert_equal({}, options)
end
end

0 comments on commit c4c5801

Please sign in to comment.