1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/template
Jamis Buck 70e684a681 view_cache_dependency API
A declarative API for specifying dependencies that affect template
cache digest computation. In your controller, specify any of said
dependencies:

  view_cache_dependency { "phone" if using_phone? }

When the block is evaluated, the resulting value is included in the
cache digest calculation, allowing you to generate different digests
for effectively the same template. (Mostly useful if you're mucking
with template load paths.)
2013-01-08 11:20:47 -07:00
..
erb Don't require action_dispatch in ActionView::UrlHelpers 2012-08-28 11:19:29 +02:00
html-scanner Ruby 2 compat. CGI.escapeHTML has changed the way it escapes apostrophes a few times, so fix up the test to work with however it chooses to escape. 2012-10-06 21:06:10 -07:00
testing stop subclassing string 2012-06-21 12:13:13 -07:00
active_model_helper_test.rb Fixed bug creating invalid HTML in select options 2012-07-10 15:03:37 -04:00
asset_tag_helper_test.rb handle protocol option in stylesheet_link_tag and javascript_include_tag 2012-12-18 11:16:17 +03:00
atom_feed_helper_test.rb deprecate assert_blank and assert_present. 2013-01-05 18:04:52 +01:00
benchmark_helper_test.rb Fix build: can't convert Regexp to String 2012-05-19 05:13:28 +09:00
capture_helper_test.rb Replace the flush parameter with a Hash. 2012-07-24 16:19:14 -03:00
compiled_templates_test.rb AP tests should inherit from AS::TestCase 2012-01-05 17:05:44 -08:00
date_helper_i18n_test.rb Add i18n scope to disance_of_time_in_words. 2012-10-19 18:35:23 -03:00
date_helper_test.rb Avoid using Integer#/, as it is redefined by the 'mathn' stdlib 2012-11-14 16:49:33 -05:00
digestor_test.rb view_cache_dependency API 2013-01-08 11:20:47 -07:00
erb_util_test.rb &#39 dates back to SGML when &#x27 was introduced in HTML 4.0 2012-09-09 19:48:32 +06:00
form_collections_helper_test.rb Fix collection_radio_buttons with the option :checked with value of 2012-12-26 23:00:31 -03:00
form_helper_test.rb Do not call fields_for from form_for, to avoid instantiating two builders 2013-01-06 10:54:21 -02:00
form_options_helper_i18n_test.rb
form_options_helper_test.rb No sort Hash options in #grouped_options_for_select 2012-11-27 20:04:37 +04:00
form_tag_helper_test.rb set 'alt' attribute for image_submit_tag 2013-01-08 15:56:47 +04:00
javascript_helper_test.rb Improve the deprecation message of link_to_function and 2012-10-27 15:40:21 -02:00
log_subscriber_test.rb Remove stubs from LogSubscriber tests 2012-08-28 10:51:04 +02:00
lookup_context_test.rb Add ActionView::Base.default_formats 2012-08-28 10:51:04 +02:00
number_helper_test.rb Refactor AV number helper tests with invalid numbers 2012-06-24 19:30:05 -03:00
output_buffer_test.rb remove checks for encodings availability 2011-12-25 14:34:58 +03:00
output_safety_helper_test.rb 'with_kcode' removed. 2011-12-21 15:39:50 +05:30
record_identifier_test.rb Fix ActionView::RecordIdentifier to work as a singleton 2012-08-28 11:19:37 +02:00
record_tag_helper_test.rb No need to pass a empty block to content_tag_for anymore 2013-01-02 09:53:51 -03:00
render_test.rb Do not generate local vars for partials without object or collection 2013-01-08 09:15:20 -02:00
resolver_patterns_test.rb [action_view] added custom patterns to template resolver 2011-03-20 07:01:46 +08:00
sanitize_helper_test.rb Minor cleanup, helper method was only used once 2012-10-15 11:30:54 +02:00
streaming_render_test.rb remove more conditions for Fiber available in ruby19 2011-12-31 01:22:40 +05:30
tag_helper_test.rb Add test to ensure data attributes are properly escaped with tag helpers 2012-11-01 08:49:47 -02:00
template_error_test.rb Removed unused assigns from ActionView::Template::Error 2012-01-20 20:13:29 +04:00
template_test.rb Override <%== to always behave as literal text rather than toggling based on whether escaping is enabled. Fixes that existing plaintext email templates using <%== unexpectedly flipped to *escaping* HTML when #8235 was merged. 2012-12-03 10:31:18 -07:00
test_case_test.rb recognizes when a partial was rendered twice. Closes #3675 2012-10-11 08:46:49 +02:00
test_test.rb Remove unneeded tests 2012-12-31 13:57:24 -03:00
text_helper_test.rb &#39 dates back to SGML when &#x27 was introduced in HTML 4.0 2012-09-09 19:48:32 +06:00
translation_helper_test.rb Fixed typo new_defautls -> new_defaults. 2012-05-23 11:04:15 +12:00
url_helper_test.rb Remove obfuscation support from mail_to helper 2012-12-18 22:39:12 -06:00