Sha256: 474e7f36b9d9764a4ff6e75977a6dd21860574ebea179319469d38a5fd115161

Contents?: true

Size: 687 Bytes

Versions: 23

Compression:

Stored size: 687 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

describe "<r:smarty_pants>" do
  dataset :pages
  it "should filter its contents with SmartyPants" do
    pages(:home).should render('<r:smarty_pants>"A revolutionary quotation."</r:smarty_pants>').as("&#8220;A revolutionary quotation.&#8221;")
  end
end

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
radiant-smarty_pants_filter-extension-1.0.1 spec/models/smarty_pants_filter_spec.rb
radiant-smarty_pants_filter-extension-1.0.0 spec/models/smarty_pants_filter_spec.rb
radiant-1.0.0.rc2 vendor/extensions/smarty_pants_filter/spec/models/smarty_pants_filter_spec.rb
radiant-1.0.0.rc1 vendor/extensions/smarty_pants_filter/spec/models/smarty_pants_filter_spec.rb
radiantcms-couchrest_model-0.2.4 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiantcms-couchrest_model-0.2.2 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiantcms-couchrest_model-0.2.1 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiantcms-couchrest_model-0.2 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiantcms-couchrest_model-0.1.9 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiantcms-couchrest_model-0.1.8 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiantcms-couchrest_model-0.1.7 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiantcms-couchrest_model-0.1.6 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiantcms-couchrest_model-0.1.5 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiantcms-couchrest_model-0.1.4 vendor/extensions/smarty_pants_filter/spec/models/smarty_pants_filter_spec.rb
radiant-0.7.2 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiant-0.9.1 vendor/extensions/smarty_pants_filter/spec/models/smarty_pants_filter_spec.rb
radiant-0.8.2 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiant-0.9.0.rc2 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiant-rc-0.9.0 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb
radiant-0.8.1 vendor/extensions/markdown_filter/spec/models/smarty_pants_filter_spec.rb