Sha256: e7779e767bce608c8d572fe589ca6ed2d2b3237331249d4b6d2067726f378a98

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

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

  it 'Successful copied' do
    expect(Space2dot.copy_command('.fuga.hoge.foo')).to eq("echo .fuga.hoge.foo | ruby -pe 'chomp' | pbcopy")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
space2dot-0.0.3 spec/space2dot_spec.rb
space2dot-0.0.2 spec/space2dot_spec.rb
space2dot-0.0.1 spec/space2dot_spec.rb