Sha256: 59a378dd710b0ba630c5c1c7ff1c8c8b1f40869c20c6dd371056234e29464238

Contents?: true

Size: 292 Bytes

Versions: 6

Compression:

Stored size: 292 Bytes

Contents

require 'spec_helper'
require 'extensions/string'

describe "string extensions" do
  it "should pluralize and to sym a string" do
    "apple".pluralize_to_sym.should eql(:apples)
  end

  it "should variablize words with spaces" do
    "foo -  BAR".variablize.should eql("foo_bar")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
taza-0.9.2.1 spec/taza/string_spec.rb
taza-0.9.2.0 spec/taza/string_spec.rb
taza-0.9.1.2 spec/string_spec.rb
taza-0.9.1.1 spec/string_spec.rb
taza-0.9.1 spec/string_spec.rb
taza-0.9.0 spec/string_spec.rb