diff options
author | Morgan Haskel <morgan@puppetlabs.com> | 2015-07-09 10:20:37 -0700 |
---|---|---|
committer | Morgan Haskel <morgan@puppetlabs.com> | 2015-07-09 10:20:37 -0700 |
commit | 07c38e518a19892bd6c77314d65e2209ebddc48d (patch) | |
tree | ca3bdbdfee6c8f3625c8a35250b5cb69921fb873 /spec/functions | |
parent | b2aed66226b4fe33fe24252eab7a6e64a4a03ddd (diff) | |
parent | c64ecfb0c39b633675269ab02f323f7eb486dad4 (diff) | |
download | puppet-stdlib-07c38e518a19892bd6c77314d65e2209ebddc48d.tar.gz puppet-stdlib-07c38e518a19892bd6c77314d65e2209ebddc48d.tar.bz2 |
Merge pull request #482 from DavidS/document_validate_slength_3rd_arg
Add validate_slength's optional 3rd arg to README
Diffstat (limited to 'spec/functions')
-rwxr-xr-x | spec/functions/validate_slength_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functions/validate_slength_spec.rb b/spec/functions/validate_slength_spec.rb index 391f83a..5a8fa6a 100755 --- a/spec/functions/validate_slength_spec.rb +++ b/spec/functions/validate_slength_spec.rb @@ -10,7 +10,7 @@ describe 'validate_slength' do it { is_expected.to run.with_params('', -1).and_raise_error(Puppet::ParseError, /second argument to be a positive Numeric/) } it { is_expected.to run.with_params('', 1, '').and_raise_error(Puppet::ParseError, /third argument to be unset or a positive Numeric/) } it { is_expected.to run.with_params('', 1, -1).and_raise_error(Puppet::ParseError, /third argument to be unset or a positive Numeric/) } - it { is_expected.to run.with_params('', 1, 2).and_raise_error(Puppet::ParseError, /argument to be larger than third argument/) } + it { is_expected.to run.with_params('', 1, 2).and_raise_error(Puppet::ParseError, /argument to be equal to or larger than third argument/) } end context "with a maximum length of 10" do |