1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test/template
Jean Boussier 5d4a77d324 Fix TranslationHelper#translate handling of Hash defaults
It is sometimes expected of the `translate` methods to return a Hash,
for instance it's the case of the `number.format` key.

As such users might need to specify a Hash default, e.g.

`translate(:'some.format', default: { separator: '.', delimiter: ',' })`.

This works as expected with the `I18n.translate` methods,
however `TranslationHelper#translate` apply `Array()` on the default value.

As a result the default value end up as `[:separator, '.', :delimiter, ',']`.
2019-06-14 14:07:28 +02:00
..
erb Fix more offences 2018-09-25 13:21:40 -04:00
form_helper Prefer I18n.with_locale 2019-02-21 23:57:45 -05:00
testing Fix deprecation warning about variants and formats 2019-04-04 19:29:27 +05:30
active_model_helper_test.rb Raise deprecation for calling [:f] = 'b' or [:f] << 'b' 2019-03-31 22:59:12 +08:00
asset_tag_helper_test.rb Remove deprecated image_alt helper 2019-01-17 16:08:31 -05:00
atom_feed_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
capture_helper_test.rb Tighten up the AV::Base constructor 2019-01-29 15:49:40 -08:00
compiled_templates_test.rb Remove actionview tests which modify fixtures 2019-06-05 18:40:06 -07:00
controller_helper_test.rb Merge pull request #29897 from kirs/frozen-actionview 2017-07-24 15:54:08 -04:00
csp_helper_test.rb Allow to pass options to csp_meta_tag 2019-02-16 09:36:37 +09:00
csrf_helper_test.rb Don't expect defined protect_against_forgery? in {token,csrf_meta}_tag 2018-12-27 11:33:54 +02:00
date_helper_i18n_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
date_helper_test.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
dependency_tracker_test.rb Pass source to template handler and deprecate old style handler 2019-02-01 16:19:53 -08:00
digestor_test.rb Make Template::Resolver always cache 2019-03-15 09:20:05 -07:00
erb_util_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
fallback_file_system_resolver_test.rb Always reject files external to app 2019-04-03 09:02:28 -07:00
file_system_resolver_test.rb Add tests against resolver 2019-04-11 17:09:00 -07:00
form_collections_helper_test.rb Fix unique DOM IDs for collection inputs 2019-01-25 10:04:23 -08:00
form_helper_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
form_options_helper_i18n_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
form_options_helper_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
form_tag_helper_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
html_test.rb Raise exception when building invalid mime type 2019-03-14 11:33:48 -07:00
javascript_helper_test.rb url -> URL where apt except inside actionpack/ 2019-04-01 22:56:35 +05:30
log_subscriber_test.rb Introduce Template::File as new render file: 2019-03-27 15:51:25 -07:00
lookup_context_test.rb Always reject files external to app 2019-04-03 09:02:28 -07:00
number_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
optimized_file_system_resolver_test.rb Add tests against resolver 2019-04-11 17:09:00 -07:00
output_safety_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
partial_iteration_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
record_identifier_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
render_test.rb RenderingHelper supports rendering objects that respond_to? :render_in 2019-06-12 16:31:01 -06:00
resolver_cache_test.rb Split digest cache from details identity cache 2019-02-08 15:13:09 -08:00
resolver_patterns_test.rb Deprecate custom patterns for PathResolver 2019-03-26 14:19:31 -07:00
resolver_shared_tests.rb Bump RuboCop to 0.67.2 2019-04-16 17:58:24 +09:00
sanitize_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
streaming_render_test.rb Introduce Template::File as new render file: 2019-03-27 15:51:25 -07:00
tag_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
template_error_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
template_test.rb Deprecate Template#refresh 2019-04-04 15:07:14 -07:00
test_case_test.rb Prefer render template: in tests 2019-03-21 13:44:56 -07:00
test_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
text_helper_test.rb Prevent TextHelper#word_wrap from stripping white space on the left 2018-11-19 17:16:34 -05:00
text_test.rb [ci skip] Renamed formats -> format in test after #35406 2019-02-26 08:35:15 +05:30
translation_helper_test.rb Fix TranslationHelper#translate handling of Hash defaults 2019-06-14 14:07:28 +02:00
url_helper_test.rb Don't expect defined protect_against_forgery? in {token,csrf_meta}_tag 2018-12-27 11:33:54 +02:00