Sha256: 4b7f00de6cc78cbe8222d5efd717ceb633521edcc3886462596cef2fca26f0cb

Contents?: true

Size: 488 Bytes

Versions: 26

Compression:

Stored size: 488 Bytes

Contents

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

describe TextileFilter do
  it "should be named Textile" do
    TextileFilter.filter_name.should == "Textile"
  end

  it "should filter text according to Textile rules" do
    TextileFilter.filter('h1. Test').should == '<h1>Test</h1>'
  end
end

describe "<r:textile>" do
  dataset :pages

  it "should filter its contents with Textile" do
    pages(:home).should render("<r:textile>h1. Test</r:textile>").as("<h1>Test</h1>")
  end
end

Version data entries

26 entries across 26 versions & 5 rubygems

Version Path
radiant-textile_filter-extension-1.0.3 spec/models/textile_filter_spec.rb
radiant-textile_filter-extension-1.0.2 spec/models/textile_filter_spec.rb
radiant-textile_filter-extension-1.0.1 spec/models/textile_filter_spec.rb
kajam-1.0.3.rc2 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiant-textile_filter-extension-1.0.0 spec/models/textile_filter_spec.rb
radiant-1.0.0.rc2 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiant-1.0.0.rc1 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiantcms-couchrest_model-0.2.4 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiantcms-couchrest_model-0.2.2 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiantcms-couchrest_model-0.2.1 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiantcms-couchrest_model-0.2 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiantcms-couchrest_model-0.1.9 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiantcms-couchrest_model-0.1.8 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiantcms-couchrest_model-0.1.7 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiantcms-couchrest_model-0.1.6 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiantcms-couchrest_model-0.1.5 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiantcms-couchrest_model-0.1.4 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiant-0.7.2 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiant-0.9.1 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb
radiant-0.8.2 vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb