summaryrefslogtreecommitdiff
path: root/spec/functions
diff options
context:
space:
mode:
authorDavid Schmitt <david@dasz.at>2015-04-10 13:28:48 +0100
committerDavid Schmitt <david@dasz.at>2015-04-10 13:28:48 +0100
commitafec0ab9813524d894969f0b113d02bbe378289c (patch)
tree0b31753d779dd4c74ef257921afcfbc5ffeb0c94 /spec/functions
parent5ee6e960f69fbee3ca53496c4437f98784aeb738 (diff)
parent3fec51ac65725ee10710030953a6d6b206de931d (diff)
Merge pull request #425 from jeffcoat/validate_augeas_spec
Fix off-by-one error in validate_augeas_spec.rb that was causing rspec failure Even without the gem installed always, this is helpful to avoid errors should augeas be enabled/installed due to something else.
Diffstat (limited to 'spec/functions')
-rwxr-xr-xspec/functions/validate_augeas_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functions/validate_augeas_spec.rb b/spec/functions/validate_augeas_spec.rb
index c695ba2..99523ab 100755
--- a/spec/functions/validate_augeas_spec.rb
+++ b/spec/functions/validate_augeas_spec.rb
@@ -60,7 +60,7 @@ describe Puppet::Parser::Functions.function(:validate_augeas), :if => Puppet.fea
end
describe "Nicer Error Messages" do
- # The intent here is to make sure the function returns the 3rd argument
+ # The intent here is to make sure the function returns the 4th argument
# in the exception thrown
inputs = [
[ "root:x:0:0:root\n", 'Passwd.lns', [], 'Failed to validate passwd content' ],
@@ -69,7 +69,7 @@ describe Puppet::Parser::Functions.function(:validate_augeas), :if => Puppet.fea
inputs.each do |input|
it "validate_augeas(#{input.inspect}) should fail" do
- expect { subject.call input }.to raise_error /#{input[2]}/
+ expect { subject.call input }.to raise_error /#{input[3]}/
end
end
end