Sha256: 2c02d4d959ce91b17181025699bc54119c936ac58e4eeacd71b2d6cffa53e858

Contents?: true

Size: 491 Bytes

Versions: 56

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

56 entries across 56 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.11.18 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.17 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.16 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.15 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.14 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.12 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.11 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.9 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.8 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.7 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.6 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.5 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.4 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.3 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.2 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.1 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.11.0 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.10.9 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.10.8 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.10.7 spec/core_ext/shellwords/clean_spec.rb