Sha256: a2255925f13cea35861e113e9799314b10249f912835c80cb77f3bd1cd88b2c6

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

require 'spec_helper'

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

  it 'Successful copied' do
    expect(Space2underscore.copy_command('fuga_hoge_foo')).to eq("echo fuga_hoge_foo | ruby -pe 'chomp' | pbcopy")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
space2underscore-0.1.1 spec/space2underscore_spec.rb
space2underscore-0.1.0 spec/space2underscore_spec.rb
space2underscore-0.0.9 spec/space2underscore_spec.rb
space2underscore-0.0.8 spec/space2underscore_spec.rb