Sha256: 33e65bc486413fda86436febd76d13b19d8bc8d45a106eb025717fcccadca829

Contents?: true

Size: 461 Bytes

Versions: 5

Compression:

Stored size: 461 Bytes

Contents

require 'spec_helper'
require 'ronin/support/inflector'

describe Ronin::Support::Inflector do
  it "should not be nil" do
    subject.should_not be_nil
  end

  it "should support pluralizing words" do
    subject.pluralize('word').should == 'words'
  end

  it "should support singularizing words" do
    subject.singularize('words').should == 'word'
  end

  it "should support humanizing words" do
    subject.humanize('word_id').should == 'Word'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ronin-1.0.0.rc1 spec/support/inflector_spec.rb
ronin-1.0.0.pre4 spec/support/inflector_spec.rb
ronin-1.0.0.pre3 spec/support/inflector_spec.rb
ronin-1.0.0.pre2 spec/support/inflector_spec.rb
ronin-1.0.0.pre1 spec/support/inflector_spec.rb