Methods
- S
- T
Instance Public methods
setup()
Link
# File actionpack/test/controller/caching_test.rb, line 399 def setup super @controller = CollectionCacheController.new @controller.perform_caching = true @controller.partial_rendered_times = 0 @controller.cache_store = ActiveSupport::Cache::MemoryStore.new ActionView::PartialRenderer.collection_cache = ActiveSupport::Cache::MemoryStore.new end
test_caching_works_with_beginning_comment()
Link
test_collection_fetches_cached_views()
Link
test_explicit_render_call_with_options()
Link
test_preserves_order_when_reading_from_cache_plus_rendering()
Link
# File actionpack/test/controller/caching_test.rb, line 417 def test_preserves_order_when_reading_from_cache_plus_rendering get :index, params: { id: 2 } assert_equal 1, @controller.partial_rendered_times assert_select ':root', 'david, 2' get :index_ordered assert_equal 3, @controller.partial_rendered_times assert_select ':root', "david, 1\n david, 2\n david, 3" end