Sha256: 32f605d21661f46b4d3979910007221ac634c6e93278577cad8695d00ff29f21
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
#!/usr/bin/env ruby BEGIN { require 'pathname' basedir = Pathname.new( __FILE__ ).dirname.parent libdir = basedir + 'lib' $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' require 'bluecloth' require 'tidy' require 'spec/lib/helpers' ##################################################################### ### C O N T E X T S ##################################################################### describe BlueCloth, "-- MarkdownTest 1.0.3: " do markdowntest_dir = Pathname.new( __FILE__ ).dirname + 'data/markdowntest' pattern = markdowntest_dir + '*.text' Pathname.glob( pattern.to_s ).each do |textfile| resultfile = Pathname.new( textfile.to_s.sub(/\.text/, '.html') ) it textfile.basename( '.text' ) do markdown = textfile.read expected = resultfile.read options = { :smartypants => false } the_markdown( markdown, options ).should be_transformed_into_normalized_html( expected ) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
mango-0.8.0 | vendor/bundler/ruby/2.1.0/gems/bluecloth-2.2.0/spec/markdowntest_spec.rb |
bluecloth-2.2.0 | spec/markdowntest_spec.rb |