Sha256: 8786878901e508bb2847e78208a42f323dffc77b9acbb7c6aec0bc03d75ef22e

Contents?: true

Size: 523 Bytes

Versions: 1

Compression:

Stored size: 523 Bytes

Contents

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

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

  it "should not be nil" do
    expect(subject).not_to be_nil
  end

  it "should support pluralizing words" do
    expect(subject.pluralize('word')).to eq('words')
  end

  it "should support singularizing words" do
    expect(subject.singularize('words')).to eq('word')
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-support-0.5.2 spec/support/inflector_spec.rb