summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2013-02-05 09:01:48 +0100
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2013-02-06 18:03:11 +0100
commit683ac8f8aa5f349ece98165d92a8d271b99b855e (patch)
tree4a57f604278711ee1f586b7bf558514ebda7d776 /spec/unit
parentbda25ac0872a101b59d8ab473218ff0f14bb7433 (diff)
validate_cmd: Use Puppet::Util.execute
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/puppet/parser/functions/validate_cmd_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/puppet/parser/functions/validate_cmd_spec.rb b/spec/unit/puppet/parser/functions/validate_cmd_spec.rb
index 0730a59..69ea7f4 100644
--- a/spec/unit/puppet/parser/functions/validate_cmd_spec.rb
+++ b/spec/unit/puppet/parser/functions/validate_cmd_spec.rb
@@ -74,7 +74,7 @@ describe Puppet::Parser::Functions.function(:validate_cmd) do
describe "Test output message" do
it "validate_cmd('whatever', 'kthnksbye') should fail" do
- expect { subject.call ['whatever', 'kthnksbye'] }.to raise_error /kthnksbye.*not found/
+ expect { subject.call ['whatever', 'kthnksbye'] }.to raise_error /kthnksbye.* returned 1/
end
end
end