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