diff options
author | kennyj <kennyj@gmail.com> | 2012-08-30 23:55:42 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-08-30 23:55:42 +0900 |
commit | 5225c1a47273621e54f6841db98ac7a1c2ebacc7 (patch) | |
tree | 31a99933897c99dfea5d35be3911b264744593ac /actionpack | |
parent | 66c31dd2b8b50090b48fecf8d39b706d3f4eb8c8 (diff) | |
download | rails-5225c1a47273621e54f6841db98ac7a1c2ebacc7.tar.gz rails-5225c1a47273621e54f6841db98ac7a1c2ebacc7.tar.bz2 rails-5225c1a47273621e54f6841db98ac7a1c2ebacc7.zip |
Fix build about TemplateDigestorTest.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/template/digestor_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/template/digestor_test.rb b/actionpack/test/template/digestor_test.rb index a53e335bb3..9c84f3107f 100644 --- a/actionpack/test/template/digestor_test.rb +++ b/actionpack/test/template/digestor_test.rb @@ -16,7 +16,7 @@ class FixtureFinder TMP_DIR = "#{File.dirname(__FILE__)}/../tmp" 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 @@ -26,7 +26,7 @@ class TemplateDigestorTest < ActionView::TestCase end def teardown - FileUtils.rm_r FixtureFinder::TMP_DIR + FileUtils.rm_r File.join(FixtureFinder::TMP_DIR, "digestor") ActionView::Digestor.cache.clear end @@ -150,7 +150,7 @@ class TemplateDigestorTest < ActionView::TestCase end 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!" end end |