Sha256: 519aa96fb3c7f9de00f4c82acd10e99d603eea099d0f655756c9ce41154391a7

Contents?: true

Size: 224 Bytes

Versions: 17

Compression:

Stored size: 224 Bytes

Contents

require "spec_helper"

describe Lita::Util do
  describe ".underscore" do
    it "converts camel cased strings into snake case" do
      expect(described_class.underscore("FooBarBaz")).to eq("foo_bar_baz")
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
lita-3.0.3 spec/lita/util_spec.rb
lita-3.0.2 spec/lita/util_spec.rb
lita-3.0.1 spec/lita/util_spec.rb
lita-3.0.0 spec/lita/util_spec.rb
lita-2.7.2 spec/lita/util_spec.rb
lita-2.7.1 spec/lita/util_spec.rb
lita-2.7.0 spec/lita/util_spec.rb
lita-2.6.0 spec/lita/util_spec.rb
lita-2.5.0 spec/lita/util_spec.rb
lita-2.4.0 spec/lita/util_spec.rb
lita-2.3.0 spec/lita/util_spec.rb
lita-2.2.1 spec/lita/util_spec.rb
lita-2.2.0 spec/lita/util_spec.rb
lita-2.1.2 spec/lita/util_spec.rb
lita-2.1.1 spec/lita/util_spec.rb
lita-2.1.0 spec/lita/util_spec.rb
lita-2.0.0 spec/lita/util_spec.rb