Sha256: ba246ffcd4eef4a8ed635a7b4efa2deb8f44bf15155754dd16b4d72a44a4a176
Contents?: true
Size: 550 Bytes
Versions: 41
Compression:
Stored size: 550 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe "Benchmarking", :type => :formatter do version = RedCloth::VERSION.is_a?(Module) ? RedCloth::VERSION::STRING : RedCloth::VERSION platform = RedCloth.const_defined?(:EXTENSION_LANGUAGE) ? RedCloth::EXTENSION_LANGUAGE : (version < "4.0.0" ? "ruby-regex" : "C") it "should not be too slow" do # puts "Benchmarking version #{version} compiled in #{platform}..." fixtures.each do |name, doc| if doc['html'] RedCloth.new(doc['in']).to_html end end end end
Version data entries
41 entries across 41 versions & 8 rubygems