Sha256: 5e8cd26aa41d94dd0a70bbc38f7e65e23fe1b727d27d903595ee586d0a5be4b0

Contents?: true

Size: 504 Bytes

Versions: 15

Compression:

Stored size: 504 Bytes

Contents

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

describe "Ronin::Support::Inflector" do
  subject { Ronin::Support::Inflector }

  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

15 entries across 15 versions & 1 rubygems

Version Path
ronin-support-0.5.1 spec/support/inflector_spec.rb
ronin-support-0.5.0 spec/support/inflector_spec.rb
ronin-support-0.5.0.rc2 spec/support/inflector_spec.rb
ronin-support-0.5.0.rc1 spec/support/inflector_spec.rb
ronin-support-0.4.1 spec/support/inflector_spec.rb
ronin-support-0.4.0 spec/support/inflector_spec.rb
ronin-support-0.4.0.rc2 spec/support/inflector_spec.rb
ronin-support-0.4.0.rc1 spec/support/inflector_spec.rb
ronin-support-0.3.0 spec/support/inflector_spec.rb
ronin-support-0.2.0 spec/support/inflector_spec.rb
ronin-support-0.2.0.rc2 spec/support/inflector_spec.rb
ronin-support-0.2.0.rc1 spec/support/inflector_spec.rb
ronin-support-0.1.0 spec/support/inflector_spec.rb
ronin-support-0.1.0.rc3 spec/support/inflector_spec.rb
ronin-support-0.1.0.rc2 spec/support/inflector_spec.rb