Sha256: bcbac919af4a988798d611c86774f3a023cad0bfe271c3fbf1dc24c77b249295

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

require 'spec_helper'

describe Space2underscore do
  it 'Successful execution' do
    expect(Space2underscore.convert_to_underscore(['fuga hoge foo']).first).to eq('fuga_hoge_foo') # String case
    expect(Space2underscore.convert_to_underscore(%w(fuga hoge foo)).first).to eq('fuga_hoge_foo') # Array case
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2underscore-0.0.6 spec/space2underscore_spec.rb