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
Dillon Welch d108288c2f
Turn on performance based cops
Use attr_reader/attr_writer instead of methods

method is 12% slower

Use flat_map over map.flatten(1)

flatten is 66% slower

Use hash[]= instead of hash.merge! with single arguments

merge! is 166% slower

See https://github.com/rails/rails/pull/32337 for more conversation
2018-07-23 15:37:06 -07:00
..
erb Remove deprecated Erubis ERB handler 2017-10-23 12:50:31 -04:00
form_helper Turn on performance based cops 2018-07-23 15:37:06 -07:00
testing Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
active_model_helper_test.rb Fix field_error_proc wrap form select optgroup and divider option tag 2017-11-09 17:37:06 +01:00
asset_tag_helper_test.rb Add the nonce: true option for javascript_include_tag helper. 2018-04-17 22:50:33 +03: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 Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
compiled_templates_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
controller_helper_test.rb Merge pull request #29897 from kirs/frozen-actionview 2017-07-24 15:54:08 -04:00
date_helper_i18n_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
date_helper_test.rb Add year_format option to date_select tag. This option makes it possible to customize year 2018-06-10 21:07:59 +09:00
dependency_tracker_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
digestor_test.rb Fix digesting templates with mixed formats 2018-03-20 06:33:20 -04:00
erb_util_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
form_collections_helper_test.rb Fix RuboCop offenses 2017-08-16 17:55:25 +09:00
form_helper_test.rb Turn on performance based cops 2018-07-23 15:37:06 -07: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 Let select render default selected option for required field 2018-02-27 23:36:05 +03:00
form_tag_helper_test.rb Don't enforce UTF-8 by default 2018-02-27 15:03:50 +00:00
html_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
javascript_helper_test.rb Implement H2 Early Hints for Rails 2017-10-04 09:17:21 -04:00
log_subscriber_test.rb Fix "warning: instance variable @defined_root not initialized" 2017-11-02 10:08:21 +09:00
lookup_context_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
number_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05: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 Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
resolver_cache_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
resolver_patterns_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
sanitize_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
streaming_render_test.rb fix(streaming_template_renderer): I18n.locale broken in layout. I18n gem stores the current locale in Thread.current[:local] (see: https://github.com/svenfuchs/i18n/blob/master/lib/i18n.rb#L23). StreamingTemplateRenderer is implemented with Fiber which have its own stack of locals and can not access Thread.current.locals(keys, see: https://ruby-doc.org/core-2.2.0/Thread.html#class-Thread-label-Fiber-local+vs.+Thread-local). 2017-11-25 21:32:02 +01: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 Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
test_case_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
test_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
text_helper_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
text_test.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
translation_helper_test.rb Add safe html support to arrays of translations 2018-07-03 11:50:02 -04:00
url_helper_test.rb Fix issue with button_to's to_form_params 2018-07-16 09:44:22 +03:00