Sha256: 46d0cc93fb9519023eba57a7d42fee9f76fe0b769378a67e039953a2bff277a9

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

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

describe StringExtensions do
  it "should properly slugify Strings" do
    str = "I am the VERy_model   0f a m()d3rn major general"
    str.to_slug.should == "i-am-the-very_model-0f-a-md3rn-major-general"
    str.slugify.should == str.to_slug
    str.slugerize.should == str.to_slug
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-0.7.2 spec/lib/core_ext/string_ext_spec.rb
radiant-0.7.0 spec/lib/core_ext/string_ext_spec.rb
radiant-0.7.1 spec/lib/core_ext/string_ext_spec.rb