diff options
author | JT (Jonny) <jonathan.tripathy@puppetlabs.com> | 2016-05-16 15:34:25 +0100 |
---|---|---|
committer | JT (Jonny) <jonathan.tripathy@puppetlabs.com> | 2016-05-16 15:34:25 +0100 |
commit | b7e1f8974b0e7ed494a79bbde27214099108aac6 (patch) | |
tree | fd55b7e18c892092ac37276e998356e91388bdce /spec/functions/delete_spec.rb | |
parent | ecfdbb2690359434f1737d05ce723cf2f5d05c4e (diff) | |
parent | dd71c0288052dd3a96e730ff198f5c0a8d640946 (diff) |
Merge pull request #605 from jyaworski/delete_optional_param
Add delete_regex
Diffstat (limited to 'spec/functions/delete_spec.rb')
-rwxr-xr-x | spec/functions/delete_spec.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/spec/functions/delete_spec.rb b/spec/functions/delete_spec.rb index fd2a8ad..b44accf 100755 --- a/spec/functions/delete_spec.rb +++ b/spec/functions/delete_spec.rb @@ -13,15 +13,12 @@ describe 'delete' do it { is_expected.to run.with_params([], 'two').and_return([]) } it { is_expected.to run.with_params(['two'], 'two').and_return([]) } it { is_expected.to run.with_params(['two', 'two'], 'two').and_return([]) } - it { is_expected.to run.with_params(['one', 'two', 'three'], '^t.*').and_return(['one']) } it { is_expected.to run.with_params(['ab', 'b', 'c', 'b'], 'b').and_return(['ab', 'c']) } it { is_expected.to run.with_params(['one', 'two', 'three'], 'four').and_return(['one', 'two', 'three']) } it { is_expected.to run.with_params(['one', 'two', 'three'], 'e').and_return(['one', 'two', 'three']) } it { is_expected.to run.with_params(['one', 'two', 'three'], 'two').and_return(['one', 'three']) } it { is_expected.to run.with_params(['two', 'one', 'two', 'three', 'two'], 'two').and_return(['one', 'three']) } it { is_expected.to run.with_params(['one', 'two', 'three', 'two'], ['one', 'two']).and_return(['three']) } - it { is_expected.to run.with_params(['abracadabra'], 'abr').and_return(['abracadabra']) } - it { is_expected.to run.with_params(['abracadabra'], '^.*jimbob.*$').and_return(['abracadabra']) } end describe 'deleting from a string' do |