aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/digestor_test.rb
diff options
context:
space:
mode:
authorAndy Shipman <andy@cllearview.com>2012-10-11 17:36:58 +0100
committerAndy Shipman <andy@cllearview.com>2012-10-11 17:36:58 +0100
commit2938ef7a65be5527905174b348b58c98a06d20e4 (patch)
tree841a5c00b53fc414b63f91dfd68d82feb7a355d2 /actionpack/test/template/digestor_test.rb
parent888a7a5bdc10bf5e2aceaad1cd40979a2388e4c0 (diff)
downloadrails-2938ef7a65be5527905174b348b58c98a06d20e4.tar.gz
rails-2938ef7a65be5527905174b348b58c98a06d20e4.tar.bz2
rails-2938ef7a65be5527905174b348b58c98a06d20e4.zip
Allow for deep directory path for view templates.
Diffstat (limited to 'actionpack/test/template/digestor_test.rb')
-rw-r--r--actionpack/test/template/digestor_test.rb6
1 files changed, 6 insertions, 0 deletions
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