summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-10-14 14:42:25 -0700
committerSerdar Sutay <serdar@opscode.com>2014-10-16 09:27:02 -0700
commit5221be1626f040ff26e2a7005aa3ddc3f17061b8 (patch)
tree3197ba6a2cda84298ac7d7471aaef1ebf85d6b17
parent214240ae4571fd1ba4accbb959ecc10382547650 (diff)
downloadchef-sersut/execute-guard-interpreter.tar.gz
Error message update from PR comments.sersut/execute-guard-interpreter
-rw-r--r--lib/chef/guard_interpreter/resource_guard_interpreter.rb2
-rw-r--r--spec/unit/resource_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/guard_interpreter/resource_guard_interpreter.rb b/lib/chef/guard_interpreter/resource_guard_interpreter.rb
index 8eaa82c0a5..346b585d8c 100644
--- a/lib/chef/guard_interpreter/resource_guard_interpreter.rb
+++ b/lib/chef/guard_interpreter/resource_guard_interpreter.rb
@@ -89,7 +89,7 @@ class Chef
end
if ! resource_class.ancestors.include?(Chef::Resource::Execute)
- raise ArgumentError, "Specified guard interpreter class #{resource_class} must be a kind of Chef::Resource::Script resource"
+ raise ArgumentError, "Specified guard interpreter class #{resource_class} must be a kind of Chef::Resource::Execute resource"
end
empty_events = Chef::EventDispatch::Dispatcher.new
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb
index 692345c943..5dfc17f333 100644
--- a/spec/unit/resource_spec.rb
+++ b/spec/unit/resource_spec.rb
@@ -349,7 +349,7 @@ describe Chef::Resource do
:updated_by_last_action, :before, :supports,
:noop, :ignore_failure, :name, :source_line,
:action, :retries, :retry_delay, :elapsed_time,
- :guard_interpreter, :sensitive ]
+ :default_guard_interpreter, :guard_interpreter, :sensitive ]
(hash.keys - expected_keys).should == []
(expected_keys - hash.keys).should == []
hash[:name].should eql("funk")