summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlexander Fisher <alex@linfratech.co.uk>2015-07-06 17:03:49 +0100
committerDavid Schmitt <david.schmitt@puppetlabs.com>2015-07-09 18:13:19 +0100
commitc64ecfb0c39b633675269ab02f323f7eb486dad4 (patch)
tree111bfffe51ef0b0e5a743d23a30a6c8f0fe7b860 /spec
parentf820bb156038f638d8e488286d0c2b92c5636925 (diff)
Add validate_slength's optional 3rd arg to README
Diffstat (limited to 'spec')
-rwxr-xr-xspec/functions/validate_slength_spec.rb2
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