Skip to content

Commit

Permalink
Merge pull request #7485 from kennyj/fix_build_20120830
Browse files Browse the repository at this point in the history
Fix build about TemplateDigestorTest.
  • Loading branch information
rafaelfranca committed Aug 30, 2012
2 parents 66c31dd + 5225c1a commit 404ddd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/test/template/digestor_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class FixtureFinder
TMP_DIR = "#{File.dirname(__FILE__)}/../tmp" TMP_DIR = "#{File.dirname(__FILE__)}/../tmp"


def find(logical_name, keys, partial, options) def find(logical_name, keys, partial, options)
FixtureTemplate.new("#{TMP_DIR}/#{partial ? logical_name.gsub(%r|/([^/]+)$|, '/_\1') : logical_name}.#{options[:formats].first}.erb") FixtureTemplate.new("#{TMP_DIR}/digestor/#{partial ? logical_name.gsub(%r|/([^/]+)$|, '/_\1') : logical_name}.#{options[:formats].first}.erb")
end end
end end


Expand All @@ -26,7 +26,7 @@ def setup
end end


def teardown def teardown
FileUtils.rm_r FixtureFinder::TMP_DIR FileUtils.rm_r File.join(FixtureFinder::TMP_DIR, "digestor")
ActionView::Digestor.cache.clear ActionView::Digestor.cache.clear
end end


Expand Down Expand Up @@ -150,7 +150,7 @@ def digest(template_name)
end end


def change_template(template_name) def change_template(template_name)
File.open("#{FixtureFinder::TMP_DIR}/#{template_name}.html.erb", "w") do |f| File.open("#{FixtureFinder::TMP_DIR}/digestor/#{template_name}.html.erb", "w") do |f|
f.write "\nTHIS WAS CHANGED!" f.write "\nTHIS WAS CHANGED!"
end end
end end
Expand Down

0 comments on commit 404ddd2

Please sign in to comment.