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.10.6 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.10.5 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.10.4 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.10.3 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.10.2 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.10.1 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.10.0 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.9.8 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.9.7 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.9.6 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.9.5 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.9.4 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.9.2 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.9.1 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.9.0 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.8.11 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.8.10 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.8.9 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.8.8 spec/core_ext/shellwords/clean_spec.rb
fedux_org-stdlib-0.8.7 spec/core_ext/shellwords/clean_spec.rb