Sha256: a9e6bb26fe849a4c8eb08df1931cea81cb5be3d2e14d67009d4802c385d58a6c

Contents?: true

Size: 408 Bytes

Versions: 18

Compression:

Stored size: 408 Bytes

Contents

require 'spec_helper'

module QueueClassicPlus
  describe Inflector do
    describe ".underscore" do
      {
        "foo" => "foo",
        "Foo" => "foo",
        "FooBar" => "foo_bar",
        "Foo::Bar" => "foo/bar"
      }.each do |word, expected|
        it "converst #{word} to #{expected}" do
          expect(described_class.underscore(word)).to eq(expected)
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
queue_classic_plus-4.0.0.alpha21 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha20 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha19 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha18 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha17 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha16 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha15 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha14 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha13 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha12 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha11 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha10 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha9 spec/inflector_spec.rb
queue_classic_plus-4.0.0.alpha8 spec/inflector_spec.rb
queue_classic_plus-1.1.0 spec/inflector_spec.rb
queue_classic_plus-1.0.1 spec/inflector_spec.rb
queue_classic_plus-1.0.0 spec/inflector_spec.rb
queue_classic_plus-1.0.0.alpha2 spec/inflector_spec.rb