vendor/plugins/haml/test/benchmark.rb in radiant-0.9.1 vs vendor/plugins/haml/test/benchmark.rb in radiant-1.0.0.rc1

- old
+ new

@@ -38,11 +38,11 @@ column :erubis, :title => "Erubis" template_name = 'standard' directory = File.dirname(__FILE__) + '/haml' haml_template = File.read("#{directory}/templates/#{template_name}.haml") - erb_template = File.read("#{directory}/rhtml/#{template_name}.rhtml") + erb_template = File.read("#{directory}/erb/#{template_name}.erb") markaby_template = File.read("#{directory}/markaby/#{template_name}.mab") report "Cached" do obj = Object.new @@ -62,14 +62,14 @@ @base.unmemoize_all Haml::Template.options[:ugly] = false # To cache the template render @base, 'haml/templates/standard' - render @base, 'haml/rhtml/standard' + render @base, 'haml/erb/standard' haml { render @base, 'haml/templates/standard' } - erb { render @base, 'haml/rhtml/standard' } + erb { render @base, 'haml/erb/standard' } Haml::Template.options[:ugly] = true render @base, 'haml/templates/standard_ugly' haml_ugly { render @base, 'haml/templates/standard_ugly' } end @@ -79,13 +79,13 @@ @base.unmemoize_all Haml::Template.options[:ugly] = false # To cache the template render @base, 'haml/templates/action_view' - render @base, 'haml/rhtml/action_view' + render @base, 'haml/erb/action_view' haml { render @base, 'haml/templates/action_view' } - erb { render @base, 'haml/rhtml/action_view' } + erb { render @base, 'haml/erb/action_view' } Haml::Template.options[:ugly] = true render @base, 'haml/templates/action_view_ugly' haml_ugly { render @base, 'haml/templates/action_view_ugly' } end