Sha256: 4b3207763bd6d3f86d1b0a0579b50c5e032d3a569599f57fb146e543f0964665
Contents?: true
Size: 899 Bytes
Versions: 13
Compression:
Stored size: 899 Bytes
Contents
require 'spec_helper' describe Locomotive::Liquid::Filters::Text do include Locomotive::Liquid::Filters::Text it 'transforms a textile input into HTML' do textile('This is *my* text.').should == "<p>This is <strong>my</strong> text.</p>" end it 'underscores an input' do underscore('foo').should == 'foo' underscore('home page').should == 'home_page' underscore('My foo Bar').should == 'my_foo_bar' underscore('foo/bar').should == 'foo_bar' underscore('foo/bar/index').should == 'foo_bar_index' end it 'dasherizes an input' do dasherize('foo').should == 'foo' dasherize('foo_bar').should == 'foo-bar' dasherize('foo/bar').should == 'foo-bar' dasherize('foo/bar/index').should == 'foo-bar-index' end it 'concats strings' do concat('foo', 'bar').should == 'foobar' concat('hello', 'foo', 'bar').should == 'hellofoobar' end end
Version data entries
13 entries across 13 versions & 1 rubygems