From dfb71265cd3a33fe3b8c38baeae93edadf958b67 Mon Sep 17 00:00:00 2001 From: nex3 Date: Sun, 3 Dec 2006 22:43:19 +0000 Subject: [PATCH] Profiling and Benchmarking work. git-svn-id: svn://hamptoncatlin.com/haml/branches/1.5dev@188 7063305b-7217-0410-af8c-cdc13e5119b9 --- test/benchmark.rb | 4 ++-- test/profile.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/benchmark.rb b/test/benchmark.rb index b915357f..a02eac9b 100644 --- a/test/benchmark.rb +++ b/test/benchmark.rb @@ -33,8 +33,8 @@ module Haml # def benchmark(runs = 100, template_name = 'standard', other_template = nil) if other_template.nil? - haml_template = "templates/#{template_name}" - rhtml_template = "rhtml/#{template_name}" + haml_template = "haml/templates/#{template_name}" + rhtml_template = "haml/rhtml/#{template_name}" else haml_template = template_name rhtml_template = other_template diff --git a/test/profile.rb b/test/profile.rb index 95ec5846..d9e86955 100644 --- a/test/profile.rb +++ b/test/profile.rb @@ -12,7 +12,7 @@ module Haml # Creates a new profiler that looks for templates in the base # directory. - def initialize(base = File.join(File.dirname(__FILE__), 'templates')) + def initialize(base = File.join(File.dirname(__FILE__), 'haml', 'templates')) ActionView::Base.register_template_handler("haml", Haml::Template) unless base.class == ActionView::Base @base = ActionView::Base.new(base)