summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/configurer_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/configurer_spec.rb b/spec/unit/configurer_spec.rb
index f8a486928..020d1850f 100755
--- a/spec/unit/configurer_spec.rb
+++ b/spec/unit/configurer_spec.rb
@@ -244,7 +244,7 @@ describe Puppet::Configurer do
Puppet.settings[:prerun_command] = "/my/command"
Puppet::Util.expects(:execute).with(["/my/command"]).raises(Puppet::ExecutionFailure, "Failed")
- report.expects(:<<).with { |log| log.message.start_with?("Could not run command from prerun_command") }
+ report.expects(:<<).with { |log| log.message =~ /^Could not run command from prerun_command/ }
@agent.run.should be_nil
end
@@ -267,7 +267,7 @@ describe Puppet::Configurer do
Puppet.settings[:postrun_command] = "/my/command"
Puppet::Util.expects(:execute).with(["/my/command"]).raises(Puppet::ExecutionFailure, "Failed")
- report.expects(:<<).with { |log| log.message.start_with?("Could not run command from postrun_command") }
+ report.expects(:<<).with { |log| log.message =~ /^Could not run command from postrun_command/ }
@agent.run.should be_nil
end