From eff27ab11962aa90885653438d0d04d3136fd846 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 12 Jan 2008 01:19:46 +0000 Subject: Fix a few caching errors, expose a case thats still not working (ref #107330 [catfish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8630 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/fixtures/functional_caching/_partial.erb | 3 +++ actionpack/test/fixtures/functional_caching/fragment_cached.html.erb | 2 ++ .../functional_caching/html_fragment_cached_with_partial.html.erb | 1 + .../fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs | 1 + 4 files changed, 7 insertions(+) create mode 100644 actionpack/test/fixtures/functional_caching/_partial.erb create mode 100644 actionpack/test/fixtures/functional_caching/fragment_cached.html.erb create mode 100644 actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb create mode 100644 actionpack/test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs (limited to 'actionpack/test/fixtures/functional_caching') diff --git a/actionpack/test/fixtures/functional_caching/_partial.erb b/actionpack/test/fixtures/functional_caching/_partial.erb new file mode 100644 index 0000000000..d0e4f72b95 --- /dev/null +++ b/actionpack/test/fixtures/functional_caching/_partial.erb @@ -0,0 +1,3 @@ +<% cache do %> +Fragment caching in a partial +<% end %> \ No newline at end of file diff --git a/actionpack/test/fixtures/functional_caching/fragment_cached.html.erb b/actionpack/test/fixtures/functional_caching/fragment_cached.html.erb new file mode 100644 index 0000000000..268a298a42 --- /dev/null +++ b/actionpack/test/fixtures/functional_caching/fragment_cached.html.erb @@ -0,0 +1,2 @@ +Hello +<% cache do %>This bit's fragment cached<% end %> diff --git a/actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb b/actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb new file mode 100644 index 0000000000..a9462d3499 --- /dev/null +++ b/actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb @@ -0,0 +1 @@ +<%= render :partial => 'partial' %> \ No newline at end of file diff --git a/actionpack/test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs b/actionpack/test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs new file mode 100644 index 0000000000..248842c9da --- /dev/null +++ b/actionpack/test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs @@ -0,0 +1 @@ +page.replace_html 'notices', :partial => 'partial' \ No newline at end of file -- cgit v1.2.3