diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-11 15:10:46 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-11 15:10:46 -0700 |
commit | 9d24f1fc996078cfecd32771815e619b3255d132 (patch) | |
tree | 841a5c00b53fc414b63f91dfd68d82feb7a355d2 /actionpack/test | |
parent | 888a7a5bdc10bf5e2aceaad1cd40979a2388e4c0 (diff) | |
parent | 2938ef7a65be5527905174b348b58c98a06d20e4 (diff) | |
download | rails-9d24f1fc996078cfecd32771815e619b3255d132.tar.gz rails-9d24f1fc996078cfecd32771815e619b3255d132.tar.bz2 rails-9d24f1fc996078cfecd32771815e619b3255d132.zip |
Merge pull request #7912 from mrship/master
CacheDigests: Support templates in directories several levels deep
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/fixtures/digestor/level/below/_header.html.erb | 0 | ||||
-rw-r--r-- | actionpack/test/fixtures/digestor/level/below/index.html.erb | 1 | ||||
-rw-r--r-- | actionpack/test/template/digestor_test.rb | 6 |
3 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/fixtures/digestor/level/below/_header.html.erb b/actionpack/test/fixtures/digestor/level/below/_header.html.erb new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/actionpack/test/fixtures/digestor/level/below/_header.html.erb diff --git a/actionpack/test/fixtures/digestor/level/below/index.html.erb b/actionpack/test/fixtures/digestor/level/below/index.html.erb new file mode 100644 index 0000000000..b92f49a8f8 --- /dev/null +++ b/actionpack/test/fixtures/digestor/level/below/index.html.erb @@ -0,0 +1 @@ +<%= render partial: "header" %> diff --git a/actionpack/test/template/digestor_test.rb b/actionpack/test/template/digestor_test.rb index 01b101cb49..8181aa11f7 100644 --- a/actionpack/test/template/digestor_test.rb +++ b/actionpack/test/template/digestor_test.rb @@ -59,6 +59,12 @@ class TemplateDigestorTest < ActionView::TestCase change_template("comments/_comment") end end + + def test_directory_depth_dependency + assert_digest_difference("level/below/index") do + change_template("level/below/_header") + end + end def test_logging_of_missing_template assert_logged "Couldn't find template for digesting: messages/something_missing.html" do |