Sha256: a5a00d2367f6832206b8a77512e228e9c3a5b64906da795195f597e724138af9

Contents?: true

Size: 433 Bytes

Versions: 6

Compression:

Stored size: 433 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe SmartyPantsFilter do
  it "should be named SmartyPants" do
    SmartyPantsFilter.filter_name.should == "SmartyPants"
  end
  
  it "should filter text with quotes into smart quotes" do
    SmartyPantsFilter.filter("<h1 class=\"headline\">Radiant's \"filters\" rock!</h1>").should ==
      "<h1 class=\"headline\">Radiant&#8217;s &#8220;filters&#8221; rock!</h1>"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
radiant-0.6.5.1 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiant-0.6.5 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiant-0.6.7 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiant-0.6.6 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiant-0.6.9 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiant-0.6.8 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb