aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/digestor_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make sure restoration always happen.Zuhao Wan2014-06-141-0/+1
|
* Digestor should just rely on the finder to know about the format and the ↵David Heinemeier Hansson2014-03-211-10/+7
| | | | variant -- trying to pass it back in makes a mess of things (oh, and doesnt work)
* Clarify AV::Digestor.digest method signature docs and deprecation warningJeremy Kemper2014-03-151-2/+2
|
* Fix the resolver cache and stop mutating the lookup_contextRafael Mendonça França2014-03-141-8/+0
| | | | | Before we had a bug in the resolver cache so the disable_cache were not working when passing options to find
* Introduce #with_formats_and_variants to prevent problems with mutating ↵Łukasz Strzałkowski2014-03-141-0/+8
| | | | finder object
* Add mocked disable_cache for FixtureFinderŁukasz Strzałkowski2014-03-141-0/+4
|
* Set format in finderŁukasz Strzałkowski2014-03-141-3/+8
|
* Ensure LookupContext in Digestor selects correct variantPiotr Chmolowski2014-03-091-3/+5
| | | | | | | | | | Related to: #14242 #14243 14293 Variants passed to LookupContext#find() seem to be ignored, so I've used the setter instead: `finder.variants = [ variant ]`. I've also added some more test cases for variants. Hopefully this time passing tests will mean it actually works.
* Variants in ActionView::DigestorPiotr Chmolowski2014-03-041-8/+27
| | | | | | | | | | | Take variants into account when calculating template digests in ActionView::Digest. Digestor#digest now takes a hash as an argument to support variants and allow more flexibility in the future. Old-style arguments have been deprecated. Fixes #14242
* Ensure the state is clean after one failureRafael Mendonça França2013-10-161-5/+4
|
* Add 2 tests, 1 of which fails, to isolate the digest_caching behaviour ↵Brad Murray2013-10-151-0/+26
| | | | | | | | | | causing #12521 If config.action_view.cache_template_loading = false, most likely in a development configuration if config.cache_classes = false & config.action_controller.perform_caching = true. config.action_view.cache_template_loading defaults to the value of config.cache_classes
* Bust the template digest cache key when details are changedDaniel Schierbeck2013-09-191-1/+29
| | | | | | Since the lookup details will influence which template is resolved, they need to be included in the cache key -- otherwise two different templates may erroneously share the same digest value.
* Only cache template digests if config.cache_template_loadingJosh Lauer2013-08-061-2/+11
| | | | | | since ActionView::Resolver.caching is set to the same value as config.cache_template_loading only cache template digests if config.cache_template_loading is not falsy fixes issues #10752 and #10791
* Fix test name typosVipul A M2013-07-191-2/+2
|
* Fix "Stack Level Too Deep" error when rendering recursive partialsRafael Mendonça França2013-07-071-0/+25
| | | | | | | When rendering recursive partial Action View is trying to generate the view digest infinitly causing a stack level error. Fixes #11340
* Move template tests from actionpack to actionviewPiotr Sarnacki2013-06-201-0/+197