Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 377
- Log:
Various files are in the gem, but apparently not in the source distribution
on GitHub. These have been copied in from the working gem.
- Author:
- rool
- Date:
- Mon Mar 21 13:46:18 +0000 2011
- Size:
- 687 Bytes
- Properties:
- Property svn:executable is set to *
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | describe SmartyPantsFilter do |
4 | it "should be named SmartyPants" do |
5 | SmartyPantsFilter.filter_name.should == "SmartyPants" |
6 | end |
7 | |
8 | it "should filter text with quotes into smart quotes" do |
9 | SmartyPantsFilter.filter("<h1 class=\"headline\">Radiant's \"filters\" rock!</h1>").should == |
10 | "<h1 class=\"headline\">Radiant’s “filters” rock!</h1>" |
11 | end |
12 | end |
13 | |
14 | describe "<r:smarty_pants>" do |
15 | dataset :pages |
16 | it "should filter its contents with SmartyPants" do |
17 | pages(:home).should render('<r:smarty_pants>"A revolutionary quotation."</r:smarty_pants>').as("“A revolutionary quotation.”") |
18 | end |
19 | end |