aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/fixtures
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-05-24 22:02:22 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2015-05-30 18:57:10 +0200
commit4abe29d813bf3212b2d6d2af9e17caa337330a15 (patch)
treecd1fff6b55b9b7832913e265272ac05bcfce6f7f /actionpack/test/fixtures
parent7f60bedd7aca0c62d59e6f7971e73e214c2fb9db (diff)
downloadrails-4abe29d813bf3212b2d6d2af9e17caa337330a15.tar.gz
rails-4abe29d813bf3212b2d6d2af9e17caa337330a15.tar.bz2
rails-4abe29d813bf3212b2d6d2af9e17caa337330a15.zip
Replace expectation with state check.
The tests would still pass if the cache call in the rendered templates were removed.
Diffstat (limited to 'actionpack/test/fixtures')
-rw-r--r--actionpack/test/fixtures/customers/_commented_customer.html.erb1
-rw-r--r--actionpack/test/fixtures/customers/_customer.html.erb1
2 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/fixtures/customers/_commented_customer.html.erb b/actionpack/test/fixtures/customers/_commented_customer.html.erb
index d5f6e3b491..8cc9c1ec13 100644
--- a/actionpack/test/fixtures/customers/_commented_customer.html.erb
+++ b/actionpack/test/fixtures/customers/_commented_customer.html.erb
@@ -1,4 +1,5 @@
<%# I'm a comment %>
<% cache customer do %>
+ <% controller.partial_rendered_times += 1 %>
<%= customer.name %>, <%= customer.id %>
<% end %> \ No newline at end of file
diff --git a/actionpack/test/fixtures/customers/_customer.html.erb b/actionpack/test/fixtures/customers/_customer.html.erb
index 67e9f6d411..5105090d4b 100644
--- a/actionpack/test/fixtures/customers/_customer.html.erb
+++ b/actionpack/test/fixtures/customers/_customer.html.erb
@@ -1,3 +1,4 @@
<% cache customer do %>
+ <% controller.partial_rendered_times += 1 %>
<%= customer.name %>, <%= customer.id %>
<% end %> \ No newline at end of file