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