Sha256: 6c00c65e50252a5f620361374472e0e89cbcadcf5148864098196d428bbb0a28

Contents?: true

Size: 491 Bytes

Versions: 31

Compression:

Stored size: 491 Bytes

Contents

# encoding: utf-8
require 'spec_helper'
require 'fedux_org_stdlib/core_ext/shellwords/clean'

RSpec.describe '.shellclean' do
  it 'returns a normal string as normal string' do
    result = Shellwords.clean('asdf')

    expect(result).to eq 'asdf'
  end

  it 'removes whitespace' do
    result = Shellwords.clean("asdf asdf\tasdf")

    expect(result).to eq 'asdfasdfasdf'
  end

  it 'removes $' do
    result = Shellwords.clean("asdf$asdf")

    expect(result).to eq 'asdfasdf'
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.7.21 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.20 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.19 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.18 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.17 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.16 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.15 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.14 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.12 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.11 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.10 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.8 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.7 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.6 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.5 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.4 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.3 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.2 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.1 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.7.0 spec/core_ext/shellwords/clean_spec.rb