diff options
author | Piotr Chmolowski <piotr@chmolowski.pl> | 2014-03-08 23:09:54 +0100 |
---|---|---|
committer | Piotr Chmolowski <piotr@chmolowski.pl> | 2014-03-09 08:47:17 +0100 |
commit | 025c691536b22cc3f0ba802f6c303dd6f955c1c3 (patch) | |
tree | 05f18a57f6c48db8528f08bed3cac3096be91f6b /actionpack/test/fixtures | |
parent | 45efd0ebf77811e43cebc68400c24652133a0f99 (diff) | |
download | rails-025c691536b22cc3f0ba802f6c303dd6f955c1c3.tar.gz rails-025c691536b22cc3f0ba802f6c303dd6f955c1c3.tar.bz2 rails-025c691536b22cc3f0ba802f6c303dd6f955c1c3.zip |
Ensure LookupContext in Digestor selects correct variant
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.
Diffstat (limited to 'actionpack/test/fixtures')
-rw-r--r-- | actionpack/test/fixtures/functional_caching/formatted_fragment_cached_with_variant.html+phone.erb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/fixtures/functional_caching/formatted_fragment_cached_with_variant.html+phone.erb b/actionpack/test/fixtures/functional_caching/formatted_fragment_cached_with_variant.html+phone.erb new file mode 100644 index 0000000000..e523b74ae3 --- /dev/null +++ b/actionpack/test/fixtures/functional_caching/formatted_fragment_cached_with_variant.html+phone.erb @@ -0,0 +1,3 @@ +<body> +<%= cache do %><p>PHONE</p><% end %> +</body> |