Sha256: f32d8db8e615bcaa3993342b745f9be0f52646c7c5bab9d93dec7bcf0e955317
Contents?: true
Size: 822 Bytes
Versions: 6
Compression:
Stored size: 822 Bytes
Contents
# -*- encoding: utf-8 -*- require "spec_helper" describe "String#to_permalink" do { 'This IS a Tripped out title!!.!1 (well/ not really)' => 'this-is-a-tripped-out-title-1-well-not-really', '////// meph1sto r0x ! \\\\\\' => 'meph1sto-r0x', 'āčēģīķļņū' => 'acegiklnu', '中文測試 chinese text' => 'chinese-text', 'some-)()()-ExtRa!/// .data==?> to \/\/test' => 'some-extra-data-to-test', 'http://simplesideias.com.br/tags/' => 'http-simplesideias-com-br-tags', "Don't Repeat Yourself (DRY)" => 'dont-repeat-yourself-dry', "Text\nwith\nline\n\n\tbreaks" => 'text-with-line-breaks', "can't do it" => "cant-do-it", "i'm a dog" => "im-a-dog" }.each do |from, to| it "creates permalink for #{from}" do expect(from.to_permalink).to eql(to) end end end
Version data entries
6 entries across 6 versions & 2 rubygems