Sha256: 5c3bcce41b4344dd43f807cb5588e67977cf65d061d992213b660eee1505ec43
Contents?: true
Size: 755 Bytes
Versions: 15
Compression:
Stored size: 755 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe MarkdownFilter do it "should be named Markdown" do MarkdownFilter.filter_name.should == "Markdown" end it "should filter text according to Markdown rules" do MarkdownFilter.filter('**strong**').should =~ %r{<p><strong>strong</strong></p>} end it "should filter text with quotes into smart quotes" do MarkdownFilter.filter("# Radiant's \"filters\" rock!").should =~ %r{<h1>Radiant&(#8217|rsquo);s &(#8220|ldquo);filters&(#8221|rdquo); rock!</h1>} end end describe "<r:markdown>" do dataset :pages it "should filter its contents with Markdown" do pages(:home).should render("<r:markdown>* item </r:markdown>").matching(%r{<ul>\n<li>item </li>\n</ul>}) end end
Version data entries
15 entries across 15 versions & 2 rubygems