Permalink
Browse files

Merge pull request #7912 from mrship/master

CacheDigests: Support templates in directories several levels deep
  • Loading branch information...
2 parents 888a7a5 + 2938ef7 commit 9d24f1fc996078cfecd32771815e619b3255d132 @rafaelfranca rafaelfranca committed Oct 11, 2012
@@ -64,7 +64,7 @@ def logical_name
end
def directory
- name.split("/").first
+ name.split("/")[0..-2].join("/")
end
def partial?
@@ -0,0 +1 @@
+<%= render partial: "header" %>
@@ -59,6 +59,12 @@ def test_third_level_dependency
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

0 comments on commit 9d24f1f

Please sign in to comment.