]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Fix off-by-one error in validate_augeas_spec.rb that was causing rspec failure.
authorMark Jeffcoat <Mark.Jeffcoat@motive.com>
Tue, 10 Mar 2015 22:43:51 +0000 (17:43 -0500)
committerMark Jeffcoat <Mark.Jeffcoat@motive.com>
Tue, 10 Mar 2015 22:43:51 +0000 (17:43 -0500)
spec/functions/validate_augeas_spec.rb

index c695ba2eb7f23474dbd12b3f00cde57dc3b8a05c..99523ab7762c43babb38a8591b21ceca0778c0cd 100755 (executable)
@@ -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