Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 768 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | describe MarkdownFilter do |
4 | it "should be named Markdown" do |
5 | MarkdownFilter.filter_name.should == "Markdown" |
6 | end |
7 | |
8 | it "should filter text according to Markdown rules" do |
9 | MarkdownFilter.filter('**strong**').should =~ %r{<p><strong>strong</strong></p>} |
10 | end |
11 | |
12 | it "should filter text with quotes into smart quotes" do |
13 | MarkdownFilter.filter("# Radiant's \"filters\" rock!").should =~ %r{<h1>Radiant&(#8217|rsquo);s &(#8220|ldquo);filters&(#8221|rdquo); rock!</h1>} |
14 | end |
15 | end |
16 | |
17 | describe "<r:markdown>" do |
18 | dataset :pages |
19 | it "should filter its contents with Markdown" do |
20 | pages(:home).should render("<r:markdown>* item</r:markdown>").matching(%r{<ul>\n(\s+)?<li>item<\/li>\n<\/ul>\n(\n)?}) |
21 | end |
22 | end |