Sha256: 492a68df63688791be12de02455103c6ab7b74010d85630e65859b387faa0caa

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

require 'spec_helper'

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
space2underscore-0.2.2 spec/space2underscore_spec.rb
space2underscore-0.2.1 spec/space2underscore_spec.rb
space2underscore-0.2.0 spec/space2underscore_spec.rb
space2underscore-0.1.9 spec/space2underscore_spec.rb
space2underscore-0.1.8 spec/space2underscore_spec.rb