summaryrefslogtreecommitdiff
path: root/spec/functions/validate_slength_spec.rb
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2015-07-09 10:20:37 -0700
committerMorgan Haskel <morgan@puppetlabs.com>2015-07-09 10:20:37 -0700
commit07c38e518a19892bd6c77314d65e2209ebddc48d (patch)
treeca3bdbdfee6c8f3625c8a35250b5cb69921fb873 /spec/functions/validate_slength_spec.rb
parentb2aed66226b4fe33fe24252eab7a6e64a4a03ddd (diff)
parentc64ecfb0c39b633675269ab02f323f7eb486dad4 (diff)
downloadpuppet-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/validate_slength_spec.rb')
-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